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'
|
$.delete 'AutoWatch'
|
||||||
|
|
||||||
ready: ->
|
ready: ->
|
||||||
|
return unless Main.isThisPageLegit()
|
||||||
ThreadWatcher.refresh()
|
ThreadWatcher.refresh()
|
||||||
$.add d.body, ThreadWatcher.dialog
|
$.add d.body, ThreadWatcher.dialog
|
||||||
|
|
||||||
|
|||||||
@ -525,7 +525,8 @@ Main =
|
|||||||
isThisPageLegit: ->
|
isThisPageLegit: ->
|
||||||
# 404 error page or similar.
|
# 404 error page or similar.
|
||||||
unless 'thisPageIsLegit' of Main
|
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']
|
d.title not in ['4chan - Temporarily Offline', '4chan - Error']
|
||||||
Main.thisPageIsLegit
|
Main.thisPageIsLegit
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user