Fix #1363.
This commit is contained in:
parent
5e8b5ea7a1
commit
1e621a7fe4
@ -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: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user