Turn 'Force Noscript Captcha for v1' off by default in GM4 due to missing frame support.

This commit is contained in:
ccd0 2017-11-04 18:37:50 -07:00
parent b53bd98f66
commit f36dbfc669

View File

@ -66,6 +66,10 @@ Main =
Conf['Bottom QR Link'] = true
Conf['Toggleable Thread Watcher'] = true
# XXX Frames not yet supported in GM4.
if $.engine is 'gecko' and GM?
Conf['Force Noscript Captcha for v1'] = false
# Enforce JS whitelist
($.getSync or $.get) {'jsWhitelist': Conf['jsWhitelist']}, ({jsWhitelist}) ->
$.addCSP "script-src #{jsWhitelist.replace(/^#.*$/mg, '').replace(/[\s;]+/g, ' ').trim()}"