Dark Mousehunt

try to take over the world!

  1. // ==UserScript==
  2. // @name Dark Mousehunt
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description try to take over the world!
  6. // @author Hazado
  7. // @include http://mousehuntgame.com/*
  8. // @include https://mousehuntgame.com/*
  9. // @include http://www.mousehuntgame.com/*
  10. // @include https://www.mousehuntgame.com/*
  11. // @include http://apps.facebook.com/mousehunt/*
  12. // @include https://apps.facebook.com/mousehunt/*
  13. // @include http://hi5.com/friend/games/MouseHunt*
  14. // @include http://mousehunt.hi5.hitgrab.com/*
  15.  
  16. // @grant none
  17. // ==/UserScript==
  18.  
  19. setInterval(function () {
  20. var test = document.querySelectorAll('div,td,a');
  21. for (var i = 0; i < test.length; i++) {
  22. 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|rank|score|title|timer|name|help|friendsOnline|layer sigil|item|icon|mousehuntHeaderView-gameTabs|menuItem|floatr|arrow|mousehuntTooltip|travelPage|adversariesPage)|hud/i) === null) {
  23. if (test[i].id.match(/MHH_Display|hudLocationContent|overlayBg|overlayPopup|jsDialog|ajax|pagemessage/i) === null) {
  24. if (test[i].target === undefined || test[i].target.match(/_self|_blank/i) === null) {
  25. test[i].style.backgroundColor = "#28292a";
  26. test[i].style.color = "#CCC";
  27. }
  28. }
  29. }
  30. }
  31. }, 100);
  32. document.body.style.backgroundColor = "#28292a";
  33. document.body.style.color = "#CCC";
  34. document.body.style.backgroundImage = "none";