From d56799987695c2509ed9fe2ab63552fc029d1461 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 21 Dec 2014 23:04:48 -0800 Subject: [PATCH] Redirect native catalog to 4chan X catalog if 'Use 4chan X Catalog' is on. #247 --- src/General/Main.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 0d2b195bc..a0da6cc66 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -65,6 +65,10 @@ Main = ImageCommon.addControls video return + if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog'] and g.VIEW is 'catalog' + location.replace "//boards.4chan.org/#{g.BOARD}#catalog" + return + if Conf['Normalize URL'] and g.VIEW is 'thread' pathname = location.pathname.split '/' if pathname[2] isnt 'thread' or pathname.length > 4