Greasy Fork

Dark Mousehunt

Changes everything to a dark background and grey text.

目前为 2017-09-08 提交的版本。查看 最新版本

// ==UserScript==
// @name         Dark Mousehunt
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Changes everything to a dark background and grey text.
// @author       Hazado
// @match        *www.mousehuntgame.com/*
// @match        *apps.facebook.com/mousehunt/*
// @match        *hi5.com/friend/games/MouseHunt*
// @match        *mousehunt.hi5.hitgrab.com/*
// @grant        none
// ==/UserScript==

setInterval(function () {
    var test = document.querySelectorAll('div,td,a');
    for (var i = 0; i < test.length; i++) {
        if (test[i].className.match(/trapImageView-trapAuraContainer|trapImageView-layer|campPage-trap-itemBrowser-item-image|campPage-trap-itemBrowser-armed-item-image|value|mousehuntHud-menu|mousehuntHud-premiumShop-newItemsBanner|mousehuntHud-huntersHorn-container|mousehuntHud-gameInfo|pageUtil-link|mousehuntHud|wrapper|shield|icon|active_poster|fools_gold|jsDialog|active-listings|buy|sell|history|listing|labyrinth|section|hud/i) === null) {
            if (test[i].id.match(/MHH_Display|hudLocationContent|overlayBg|overlayPopup|jsDialog|ajax/i) === null) {
                test[i].style.backgroundColor = "#28292a";
                test[i].style.color = "#CCC";
            }
        }
    }
}, 100);
document.body.style.backgroundColor = "#28292a";
document.body.style.color = "#CCC";
document.body.style.backgroundImage = "none";