From a3859734e3e4d041c52d715949ba2df34e9420cd Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 5 May 2018 02:08:57 -0700 Subject: [PATCH] Update workaround for ad breaking 4chan. --- src/main/Main.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index e30c61c6f..e45932da4 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -48,7 +48,9 @@ Main = return # XXX Remove document-breaking ad - $.onExists doc, '#delform > .adg-rects', $.rm + if location.hostname is 'boards.4chan.org' + $.onExists doc, '#delform > .adg-rects', $.rm + $.onExists doc, '#adg-ol', $.rm flatten null, Config