Skip to main content Condensed UserScript

Reading time: 1 minute Suggest an edit

Lately, my interest has been piqued by cryptocurrency. After discovering that my ATI card could produce a decent hash rate without seriously spiking my electricity bill, I got specifically interested in Litecoin. Long story short, I joined a Litecoin mining pool ( and decided that I could do without a few of the widgets on their dashboard page. Bing-bang-boom, I wrote a UserScript to rearrange things a little bit. Here it is for your consumption.

You can take advantage of this with GreaseMonkey in Firefox or by dragging it into chrome://extensions on Chrome. I haven't tested it in Safari, but go ahead and give it a shot. What have you got to lose, bub?

Since you can pick it apart whether I want you to or not, here's the source. Happy holidays!


// ==UserScript==
// @name Give Me Coins Condensed
// @namespace
// @version 1.0
// @description Condenses the layout of the dashboard
// @include
// @match
// @run-at document-end
// ==/UserScript==

var container = document.querySelectorAll('.main .container')[1];
var rows = container.querySelectorAll('.row');
var els = rows[1].querySelectorAll('.widget');

for(var i = 0; i < els.length; i++) {
if(! els.hasOwnProperty(i)) continue;

var widget = els[i].parentNode;
var header =
widget.querySelector('h3').innerHTML.replace(/\^(\s|\n|\r)|(\s|\n|\r)$/g, '');

switch(header) {
case 'Workers Stats':
case 'My Hash Rate':
widget.setAttribute('class', 'span8');

var prog = document.querySelector('');
prog.getAttribute('class').replace(/\bactive\b/i, ''));
}, 0);