From 820192b6536b90b82cfcb48313d1c5dd6f6f4958 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 7 Nov 2015 14:54:15 -0800 Subject: [PATCH] Remove lists of pages not to run on containing hardcoded board names. #525 --- src/Filtering/ThreadHiding.coffee | 2 +- src/General/Main.coffee | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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]