api/images/sys.4chan.org are not legit pages.

This commit is contained in:
Nicolas Stepien 2013-03-27 21:55:24 +01:00
parent c9323272c6
commit 60737bd33e
2 changed files with 3 additions and 1 deletions

View File

@ -4080,6 +4080,7 @@ ThreadWatcher =
$.delete 'AutoWatch'
ready: ->
return unless Main.isThisPageLegit()
ThreadWatcher.refresh()
$.add d.body, ThreadWatcher.dialog

View File

@ -525,7 +525,8 @@ Main =
isThisPageLegit: ->
# 404 error page or similar.
unless 'thisPageIsLegit' of Main
Main.thisPageIsLegit = !$('link[href*="favicon-status.ico"]', d.head) and
Main.thisPageIsLegit = location.hostname is 'boards.4chan.org' and
!$('link[href*="favicon-status.ico"]', d.head) and
d.title not in ['4chan - Temporarily Offline', '4chan - Error']
Main.thisPageIsLegit