From db4b6cf8d28bdf4810f4abd22ff11b99dd6a1648 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 9 Jan 2015 17:48:12 -0800 Subject: [PATCH] Revert "Revert "Add link from native catalog to 4chan X catalog. #247"" This reverts commit 98d26d7191e773e919429d55c70fb3ebcc2a079a. --- src/Miscellaneous/CatalogLinks.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index 77564b00e..d0b6f6258 100755 --- a/src/Miscellaneous/CatalogLinks.coffee +++ b/src/Miscellaneous/CatalogLinks.coffee @@ -10,6 +10,11 @@ CatalogLinks = switch link.pathname when "/#{g.BOARD}/" then link.href = CatalogLinks.index() when "/#{g.BOARD}/catalog" then link.href = CatalogLinks.catalog() + if g.VIEW is 'catalog' and Conf['JSON Navigation'] and Conf['Use 4chan X Catalog'] + catalogLink = link.parentNode.cloneNode true + catalogLink.firstElementChild.textContent = '4chan X Catalog' + catalogLink.firstElementChild.href = CatalogLinks.catalog() + $.after link.parentNode, [$.tn(' '), catalogLink] return if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']