Update workaround for ad breaking 4chan, take two.
This commit is contained in:
parent
7fe42b2f86
commit
e5b61891a1
@ -49,8 +49,16 @@ Main =
|
|||||||
|
|
||||||
# XXX Remove document-breaking ad
|
# XXX Remove document-breaking ad
|
||||||
if location.hostname is 'boards.4chan.org'
|
if location.hostname is 'boards.4chan.org'
|
||||||
$.onExists doc, '#delform > .adg-rects', $.rm
|
$.global ->
|
||||||
$.onExists doc, '#adg-ol', $.rm
|
fromCharCode0 = String.fromCharCode
|
||||||
|
String.fromCharCode = ->
|
||||||
|
if document.body
|
||||||
|
String.fromCharCode = fromCharCode0
|
||||||
|
else if document.currentScript and not document.currentScript.src
|
||||||
|
throw Error()
|
||||||
|
fromCharCode0.apply @, arguments
|
||||||
|
$.asap docSet, ->
|
||||||
|
$.onExists doc, 'iframe[srcdoc]', $.rm
|
||||||
|
|
||||||
flatten null, Config
|
flatten null, Config
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user