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