diff --git a/CHANGELOG.md b/CHANGELOG.md index 54cf98731..2e1bba0b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Added the `board-replace` setting to Custom Board Navigation ricing. - Added the option `Cooldown Prediction`, enabled by default. - Added the option `Hide Unread Count at (0)`, disabled by default. diff --git a/src/features.coffee b/src/features.coffee index 590e25bd7..5ef541518 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -91,7 +91,7 @@ Header = $.rmAll list return unless text as = $$('#full-board-list a', Header.bar)[0...-2] # ignore the Settings and Home links - nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map (t) -> + nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map (t) -> if /^[^\w@]/.test t return $.tn t if /^toggle-all/.test t @@ -110,6 +110,9 @@ Header = a = a.cloneNode true if /-title/.test t a.textContent = a.title + else if /-replace/.test t + if $.hasClass a, 'current' + a.textContent = a.title else if /-full/.test t a.textContent = "/#{board}/ - #{a.title}" else if /-(index|catalog|text)/.test t @@ -633,6 +636,7 @@ Settings =
board can translate to a board ID (a, b, etc...), the current board (current), or the Status/Twitter link (status, @).boardboard-titleboard-replaceboard-fullboard-text:"VIP Board"board-index