From 171a82f1430bb1fe3b58a8cc696f3545082f387b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 28 Dec 2014 11:26:22 -0800 Subject: [PATCH] Add link from native catalog to 4chan X catalog. #247 --- src/Miscellaneous/CatalogLinks.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index a788657c1..ae7f867ce 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 return unless Conf['Catalog Links']