diff --git a/misc/Christmas_Town_Helper_2.3.3_mobile.js b/misc/Christmas_Town_Helper_2.3.3_mobile.js index 46c6cc6..d276cfc 100644 --- a/misc/Christmas_Town_Helper_2.3.3_mobile.js +++ b/misc/Christmas_Town_Helper_2.3.3_mobile.js @@ -39,7 +39,7 @@ let func = function (GM_addStyle, unsafeWindow, GM_getValue, GM_setValue, GM_xml let typoCD; window.addEventListener("hashchange", addBox); let original_fetch = unsafeWindow.fetch; - unsafeWindow.fetch = async (url, init) => { + let new_fetch = async (url, init) => { let response = await original_fetch(url, init) let respo = response.clone(); respo.json().then((data) => { @@ -282,6 +282,9 @@ let func = function (GM_addStyle, unsafeWindow, GM_getValue, GM_setValue, GM_xml }); return response; }; + unsafeWindow.fetch = new_fetch; + window.fetch = new_fetch; + fetch = new_fetch; function addBox() { if (!document.querySelector(".hardyCTBox")) {