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: ->
|
catalogWatch: ->
|
||||||
@hiddenThreads = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
|
@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.
|
# 4chan's catalog sets the style to "display: none;" when hiding or unhiding a thread.
|
||||||
new MutationObserver(ThreadHiding.catalogSave).observe $.id('threads'),
|
new MutationObserver(ThreadHiding.catalogSave).observe $.id('threads'),
|
||||||
attributes: true
|
attributes: true
|
||||||
|
|||||||
@ -20,7 +20,6 @@ Main =
|
|||||||
|
|
||||||
pathname = location.pathname.split /\/+/
|
pathname = location.pathname.split /\/+/
|
||||||
g.BOARD = new Board pathname[1]
|
g.BOARD = new Board pathname[1]
|
||||||
return if g.BOARD.ID in ['z', 'fk']
|
|
||||||
g.VIEW =
|
g.VIEW =
|
||||||
switch pathname[2]
|
switch pathname[2]
|
||||||
when 'res', 'thread'
|
when 'res', 'thread'
|
||||||
@ -29,8 +28,6 @@ Main =
|
|||||||
pathname[2]
|
pathname[2]
|
||||||
else
|
else
|
||||||
'index'
|
'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'
|
if g.VIEW is 'thread'
|
||||||
g.THREADID = +pathname[3]
|
g.THREADID = +pathname[3]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user