api/images/sys.4chan.org are not legit pages.
This commit is contained in:
parent
c9323272c6
commit
60737bd33e
@ -4080,6 +4080,7 @@ ThreadWatcher =
|
||||
$.delete 'AutoWatch'
|
||||
|
||||
ready: ->
|
||||
return unless Main.isThisPageLegit()
|
||||
ThreadWatcher.refresh()
|
||||
$.add d.body, ThreadWatcher.dialog
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user