Remove lists of pages not to run on containing hardcoded board names. #525

This commit is contained in:
ccd0 2015-11-07 14:54:15 -08:00
parent 5eb7808f96
commit 820192b653
2 changed files with 1 additions and 4 deletions

View File

@ -17,7 +17,7 @@ ThreadHiding =
catalogWatch: ->
@hiddenThreads = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
$.ready ->
Main.ready ->
# 4chan's catalog sets the style to "display: none;" when hiding or unhiding a thread.
new MutationObserver(ThreadHiding.catalogSave).observe $.id('threads'),
attributes: true

View File

@ -20,7 +20,6 @@ Main =
pathname = location.pathname.split /\/+/
g.BOARD = new Board pathname[1]
return if g.BOARD.ID in ['z', 'fk']
g.VIEW =
switch pathname[2]
when 'res', 'thread'
@ -29,8 +28,6 @@ Main =
pathname[2]
else
'index'
return if g.VIEW is 'catalog' and g.BOARD.ID is 'f'
return if g.VIEW is 'archive' and g.BOARD.ID in ['b', 'f', 'trash']
if g.VIEW is 'thread'
g.THREADID = +pathname[3]