diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index 1f5a8b3a6..24cbab960 100755 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -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 diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 3dbc5b3cd..4c1aec12c 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -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]