Remove lists of pages not to run on containing hardcoded board names. #525
This commit is contained in:
parent
5eb7808f96
commit
820192b653
@ -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
|
||||
|
||||
@ -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]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user