Dark Mousehunt

try to take over the world!

当前为 2017-09-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Dark Mousehunt
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://www.mousehuntgame.com/*
  8. // @match https://apps.facebook.com/mousehunt/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. setInterval(function () {
  13. var test = document.querySelectorAll('div,td,a');
  14. for (var i = 0; i < test.length; i++) {
  15. 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) {
  16. if (test[i].id.match(/MHH_Display|hudLocationContent|overlayBg|overlayPopup|jsDialog|ajax/i) === null) {
  17. test[i].style.backgroundColor = "#28292a";
  18. test[i].style.color = "white";
  19. }
  20. }
  21. }
  22. }, 100);
  23. document.body.style.backgroundColor = "#28292a";
  24. document.body.style.color = "white";
  25. document.body.style.backgroundImage = "none";