Disable Javascript Whitelist on captcha iframe. #3292
This commit is contained in:
parent
f5712a8fbb
commit
2a8bf2adb0
@ -88,6 +88,7 @@ Main =
|
||||
if (
|
||||
/\.4chan(?:nel)?\.org$/.test(location.hostname) and
|
||||
!SW.yotsuba.regexp.pass.test(location.href) and
|
||||
!SW.yotsuba.regexp.captcha.test(location.href) and
|
||||
!$$('script:not([src])', d).filter((s) -> /this\[/.test(s.textContent)).length
|
||||
)
|
||||
($.getSync or $.get) {'jsWhitelist': Conf['jsWhitelist']}, ({jsWhitelist}) ->
|
||||
|
||||
@ -103,6 +103,8 @@ SW.yotsuba =
|
||||
/<a [^>]*\bhref="(?:(?:\/\/boards\.4chan(?:nel)?\.org)?\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g
|
||||
pass:
|
||||
/^https?:\/\/www\.4chan(?:nel)?\.org\/+pass(?:$|[?#])/
|
||||
captcha:
|
||||
/^https?:\/\/sys\.4chan(?:nel)?\.org\/+captcha(?:$|[?#])/
|
||||
|
||||
bgColoredEl: ->
|
||||
$.el 'div', className: 'reply'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user