Make External Catalog work on /f/.

This commit is contained in:
ccd0 2019-07-21 17:20:05 -07:00
parent 699c1f7be5
commit 898c8e0df9

View File

@ -266,9 +266,10 @@ Header =
text or boardID
if m = t.match /-(index|catalog)/
unless boardID is 'f' and m[1] is 'catalog'
urlIC = CatalogLinks[m[1]] {siteID: '4chan.org', boardID}
if urlIC
a.dataset.only = m[1]
a.href = CatalogLinks[m[1]] {siteID: '4chan.org', boardID}
a.href = urlIC
$.addClass a, 'catalog' if m[1] is 'catalog'
else
return a.firstChild # Its text node.