Greasy Fork

Dark Mousehunt

try to take over the world!

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

// ==UserScript==
// @name         Dark Mousehunt
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.mousehuntgame.com/
// @require		 https://code.jquery.com/jquery-2.2.2.min.js
// @grant        none
// ==/UserScript==

setInterval(function () {
    var test = document.querySelectorAll('div');
    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/) === null) {
            if (test[i].id.match(/MHH_Display|hudLocationContent/) === null) {
                test[i].style.backgroundColor = "#28292a";
                test[i].style.color = "white";
            }
        }
    }
}, 500);
document.body.style.backgroundColor = "#28292a";
document.body.style.color = "white";
$('body').css('background-image', 'url(null)');