Revert "Revert "Add link from native catalog to 4chan X catalog. #247""

This reverts commit 98d26d7191e773e919429d55c70fb3ebcc2a079a.
This commit is contained in:
ccd0 2015-01-09 17:48:12 -08:00
parent a1217506e0
commit db4b6cf8d2

View File

@ -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']