Give Me Coins Condensed

Condenses the layout of the give-me-coins.com dashboard

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Give Me Coins Condensed
// @namespace http://roadha.us
// @version 1.0
// @description Condenses the layout of the give-me-coins.com dashboard
// @include https://give-me-coins.com/pool/dashboard
// @match https://give-me-coins.com/pool/dashboard
// @run-at document-end
// ==/UserScript==

// http://roadha.us/

setTimeout(function(){

var container = document.querySelectorAll('.main .container')[1];
var rows = container.querySelectorAll('.row');
rows[0].parentNode.removeChild(rows[0]);
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':
			widget.parentNode.removeChild(widget);
			break;
		case 'My Hash Rate':
			widget.setAttribute('class', 'span8');
			break;
		default:
			break;
	}
}

var prog = document.querySelector('.progress.active');
prog.setAttribute('class', prog.getAttribute('class').replace(/\bactive\b/i, ''));

},0);