Merge remote-tracking branch 'saxamaphone69/patch-1'
This commit is contained in:
commit
e4eeabaf9e
@ -191,7 +191,7 @@ Header =
|
||||
$.rmAll list
|
||||
return unless boardnav
|
||||
boardnav = boardnav.replace /(\r\n|\n|\r)/g, ' '
|
||||
re = /[\w@]+(-(all|title|replace|full|index|catalog|archive|expired|(mode|sort|text):"[^"]+"(,"[^"]+")?))*|[^\w@]+/g
|
||||
re = /[\w@]+(-(all|title|replace|full|index|catalog|archive|expired|nt|(mode|sort|text):"[^"]+"(,"[^"]+")?))*|[^\w@]+/g
|
||||
nodes = (Header.mapCustomNavigation(t) for t in boardnav.match re)
|
||||
$.add list, nodes
|
||||
CatalogLinks.setLinks list
|
||||
@ -293,6 +293,11 @@ Header =
|
||||
a.href = "//#{BoardConfig.domain(boardID)}/#{boardID}/archive"
|
||||
else
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
if /-nt/.test t
|
||||
a.target = '_blank'
|
||||
a.rel = 'noopener noreferrer';
|
||||
return a
|
||||
|
||||
$.addClass a, 'navSmall' if boardID is '@'
|
||||
a
|
||||
|
||||
@ -73,6 +73,7 @@
|
||||
<div>Index mode: <code>g-mode:"infinite scrolling"</code></div>
|
||||
<div>Index sort: <code>g-sort:"creation date rev"</code></div>
|
||||
<div>External link: <code>external-text:"Google","http://www.google.com"</code></div>
|
||||
<div>Open in new tab: <code>g-nt</code></div>
|
||||
<div>Combinations are possible: <code>g-index-text:"Technology Index"</code></div>
|
||||
<div>Full board list toggle: <code>toggle-all</code></div>
|
||||
<br>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user