Disable JS Whitelist outside 4chan for now.
This commit is contained in:
parent
447f0ac060
commit
243c807d5f
@ -71,8 +71,9 @@ Main =
|
||||
Conf['Toggleable Thread Watcher'] = true
|
||||
|
||||
# Enforce JS whitelist
|
||||
($.getSync or $.get) {'jsWhitelist': Conf['jsWhitelist']}, ({jsWhitelist}) ->
|
||||
$.addCSP "script-src #{jsWhitelist.replace(/^#.*$/mg, '').replace(/[\s;]+/g, ' ').trim()}"
|
||||
if /\.4chan\.org$/.test(location.hostname)
|
||||
($.getSync or $.get) {'jsWhitelist': Conf['jsWhitelist']}, ({jsWhitelist}) ->
|
||||
$.addCSP "script-src #{jsWhitelist.replace(/^#.*$/mg, '').replace(/[\s;]+/g, ' ').trim()}"
|
||||
|
||||
# Get saved values as items
|
||||
items = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user