Don't execute 4chan X on '4chan - Error' pages.
This commit is contained in:
parent
a860137db4
commit
3b82f1841e
@ -523,7 +523,8 @@ Main =
|
||||
isThisPageLegit: ->
|
||||
# 404 error page or similar.
|
||||
unless 'thisPageIsLegit' of Main
|
||||
Main.thisPageIsLegit = !$('link[href*="favicon-status.ico"]', d.head) and d.title isnt '4chan - Temporarily Offline'
|
||||
Main.thisPageIsLegit = !$('link[href*="favicon-status.ico"]', d.head) and
|
||||
d.title not in ['4chan - Temporarily Offline', '4chan - Error']
|
||||
Main.thisPageIsLegit
|
||||
|
||||
css: """
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user