Don't execute 4chan X on '4chan - Error' pages.

This commit is contained in:
Nicolas Stepien 2013-03-23 04:10:20 +01:00
parent a860137db4
commit 3b82f1841e

View File

@ -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: """