fix index-only header links

This commit is contained in:
ccd0 2014-09-20 18:26:14 -07:00
parent 3dd0ed6026
commit 14172c00f0

View File

@ -34,7 +34,7 @@ CatalogLinks =
else
(board) -> a.href = "/#{board}/#{path}"
for a in $$ """#board-list a:not(.catalog), #boardNavDesktopFoot a"""
for a in $$ """#board-list a:not([data-only]), #boardNavDesktopFoot a"""
continue if a.hostname not in ['boards.4chan.org', 'catalog.neet.tv', '4index.gropes.us'] or
!(board = a.pathname.split('/')[1]) or
board in ['f', 'status', '4chan'] or