Hentai Heroes notifications disabler

Disables those idiotic daily contest objectives notifications.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         Hentai Heroes notifications disabler
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Disables those idiotic daily contest objectives notifications.
// @author       randomfapper34
// @match        http*://nutaku.haremheroes.com/*
// @match        http*://*.hentaiheroes.com/*
// @license      MIT
// ==/UserScript==

function waitForElement() {
    //await construction of objective popup variable in game script
    if (typeof objectivePopup !== 'undefined' && objectivePopup !== null) {
        //replace objective popup display function with an empty one
        objectivePopup.show = function show(data) {
            return;
        };
    }
    else {
        setTimeout(waitForElement, 200);
    }
}

waitForElement();