Hentai Heroes notifications disabler

Disables those idiotic daily contest objectives notifications.

  1. // ==UserScript==
  2. // @name Hentai Heroes notifications disabler
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Disables those idiotic daily contest objectives notifications.
  6. // @author randomfapper34
  7. // @match http*://nutaku.haremheroes.com/*
  8. // @match http*://*.hentaiheroes.com/*
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. function waitForElement() {
  13. //await construction of objective popup variable in game script
  14. if (typeof objectivePopup !== 'undefined' && objectivePopup !== null) {
  15. //replace objective popup display function with an empty one
  16. objectivePopup.show = function show(data) {
  17. return;
  18. };
  19. }
  20. else {
  21. setTimeout(waitForElement, 200);
  22. }
  23. }
  24.  
  25. waitForElement();