Hi All,
Just posting a small script to highlight machines’ row with different colours:
user, root, user/root. Tested with violentmonkey.
// ==UserScript==
// @name HTB
// @namespace Hack The Box
// @version 1.0
// @author d4rk3r
// @description Hack The Box. Change background row colour based on owned box: user, root, user/root
// @match https://www.hackthebox.eu/home/machines/*
// @grant none
// ==/UserScript==
$(document).ready(function(){
setTimeout(function(){
$.each($('[id^=ownUserBtn]'), function(){
var user = $(this).hasClass('btn-success');
var root = $(this).next().hasClass('btn-success');
if(user && !root){
$(this).parent().parent().css('background-color', '#3a4850');
}
if(!user && root){
$(this).parent().parent().css('background-color', '#444d52');
}
if(user && root){
$(this).parent().parent().css('background-color', '#343c41');
}
});
}, 500);
});