This commit is contained in:
Mayhem 2013-12-05 17:44:01 +01:00
parent 5e8b5ea7a1
commit 1e621a7fe4

View File

@ -225,12 +225,12 @@ Header =
setCatalogLinks: (useCatalog) -> setCatalogLinks: (useCatalog) ->
Header.catalogToggler.checked = useCatalog Header.catalogToggler.checked = useCatalog
as = $$ [ as = $$ [
'#board-list a[href*="boards.4chan.org"]' '#board-list a'
'#boardNavDesktop a[href*="boards.4chan.org"]' '#boardNavDesktop a'
'#boardNavDesktopFoot a[href*="boards.4chan.org"]' '#boardNavDesktopFoot a'
].join ', ' ].join ', '
path = if useCatalog then 'catalog' else '' path = if useCatalog then 'catalog' else ''
for a in as when not a.dataset.only for a in as when a.hostname is 'boards.4chan.org' and not a.dataset.only
a.pathname = "/#{a.pathname.split('/')[1]}/#{path}" a.pathname = "/#{a.pathname.split('/')[1]}/#{path}"
return return
toggleCatalogLinks: -> toggleCatalogLinks: ->