diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/content/onScriptDisabled.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js index a3a0ffe..a36707a 100644 --- a/src/content/onScriptDisabled.js +++ b/src/content/onScriptDisabled.js @@ -12,7 +12,7 @@ function onScriptDisabled() { let [secs, url] = content.split(/\s*;\s*url\s*=\s*/i); if (url) { try { - let urlObj = new URL(url); + let urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2')); if (!/^https?:/.test(urlObj.protocol)) { continue; } |