diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 6e697632e..7ec67988b 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -78,7 +78,7 @@ Main = Conf['Toggleable Thread Watcher'] = true # Enforce JS whitelist - if /\.4chan\.org$/.test(location.hostname) + if /\.4chan\.org$/.test(location.hostname) and !$$('script:not([src])', d).filter((s) -> /this\[/.test(s.textContent)).length ($.getSync or $.get) {'jsWhitelist': Conf['jsWhitelist']}, ({jsWhitelist}) -> $.addCSP "script-src #{jsWhitelist.replace(/^#.*$/mg, '').replace(/[\s;]+/g, ' ').trim()}"