diff --git a/src/background/requests.js b/src/background/requests.js index 7ec137f..6a18740 100644 --- a/src/background/requests.js +++ b/src/background/requests.js @@ -69,6 +69,14 @@ async function bypass(tabId, url) { * @return {Promise} */ async function maybeInstallUserJs(tabId, url) { + const IITC_is_enabled = await browser.storage.local + .get(["IITC_is_enabled"]) + .then(data => data.IITC_is_enabled); + if (IITC_is_enabled === false) { + await bypass(tabId, url); + return; + } + let code = undefined; try { code = await ajaxGet(url);