zamurat / Kamihime Project - Remove Nike error

// ==UserScript==
// @name         Kamihime Project - Remove Nike error 
// @description  Remove error page and connecting shield
// @version      1
// @match        https://osapi.nutaku.com/gadgets/*
// @match        https://cf.r.kamihimeproject.dmmgames.com/?oauth_consumer_key*
// @match        https://pf.nutaku.com/gadgets/*
// @run-at       document-end
// @license      MIT
// ==/UserScript==

(function() {
    let interval = setInterval(function() {
        if (typeof rpc !== 'undefined' && rpc.openErrorDialog && rpc.deployTouchShield) {
            clearInterval(interval);
            rpc.openErrorDialog = function(x) {return}
            rpc.deployTouchShield = function() {return}
        }
    }, 10);
})();