Hard disable 'Force Noscript Captcha for v1' in GM4 for now.
This commit is contained in:
parent
dea21cb6af
commit
e53d2af9b5
@ -30,6 +30,8 @@ QR =
|
||||
|
||||
version = if Conf[if g.VIEW is 'thread' then 'Use Recaptcha v1' else 'Use Recaptcha v1 on Index'] and (Main.jsEnabled or location.protocol is 'https:')
|
||||
noscript = location.protocol is 'https:' and (Conf['Force Noscript Captcha for v1'] or not Main.jsEnabled)
|
||||
# XXX Frames not yet supported in GM4.
|
||||
noscript = false if (info = GM?.info) and info.scriptHandler is 'Greasemonkey' and /^4\./.test(info.version)
|
||||
if noscript then 'noscript' else 'v1'
|
||||
else
|
||||
'v2'
|
||||
|
||||
@ -70,10 +70,6 @@ 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()}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user