diff --git a/builds/4chan-X.js b/builds/4chan-X.js
index 47746c960..00e7d8297 100644
--- a/builds/4chan-X.js
+++ b/builds/4chan-X.js
@@ -4729,7 +4729,7 @@
return;
}
as = $$('#full-board-list a', Header.nav).slice(0, -2);
- nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
+ nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
var a, board, m, _i, _len;
if (/^[^\w@]/.test(t)) {
@@ -4751,6 +4751,10 @@
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)) {
@@ -8878,7 +8882,7 @@
rice: function(section) {
var event, input, inputs, items, name, _i, _len, _ref;
- section.innerHTML = "
\n\n\n\n\n\n\n\n\n\n";
+ section.innerHTML = "\n\n\n\n\n\n\n\n\n\n";
items = {};
inputs = {};
_ref = ['boardnav', 'time', 'backlink', 'fileInfo', 'favicon', 'usercss'];
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 7982a66c8..7707e2eb7 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -4720,7 +4720,7 @@
return;
}
as = $$('#full-board-list a', Header.nav).slice(0, -2);
- nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
+ nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
var a, board, m, _i, _len;
if (/^[^\w@]/.test(t)) {
@@ -4742,6 +4742,10 @@
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)) {
@@ -8896,7 +8900,7 @@
rice: function(section) {
var event, input, inputs, items, name, _i, _len, _ref;
- section.innerHTML = "\n\n\n\n\n\n\n\n\n\n";
+ section.innerHTML = "\n\n\n\n\n\n\n\n\n\n";
items = {};
inputs = {};
_ref = ['boardnav', 'time', 'backlink', 'fileInfo', 'favicon', 'usercss'];
diff --git a/builds/crx/script.js b/builds/crx/script.js
index 49f3dde72..251ed94ed 100644
--- a/builds/crx/script.js
+++ b/builds/crx/script.js
@@ -4643,7 +4643,7 @@
return;
}
as = $$('#full-board-list a', Header.nav).slice(0, -2);
- nodes = text.match(/[\w@]+(-(all|title|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
+ nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
var a, board, m, _i, _len;
if (/^[^\w@]/.test(t)) {
@@ -4665,6 +4665,10 @@
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)) {
@@ -8798,7 +8802,7 @@
rice: function(section) {
var event, input, inputs, items, name, _i, _len, _ref;
- section.innerHTML = "\n\n\n\n\n\n\n\n\n\n";
+ section.innerHTML = "\n\n\n\n\n\n\n\n\n\n";
items = {};
inputs = {};
_ref = ['boardnav', 'time', 'backlink', 'fileInfo', 'favicon', 'usercss'];
diff --git a/src/features/misc/header.coffee b/src/features/misc/header.coffee
index df668a4b7..f6133e90d 100644
--- a/src/features/misc/header.coffee
+++ b/src/features/misc/header.coffee
@@ -106,7 +106,7 @@ Header =
$.rmAll list
return unless text
as = $$('#full-board-list a', Header.nav)[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
@@ -125,6 +125,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
diff --git a/src/settings.coffee b/src/settings.coffee
index fea4262e6..67133b9ac 100644
--- a/src/settings.coffee
+++ b/src/settings.coffee
@@ -391,6 +391,7 @@ Settings =
Board link: board
Title link: board-title
+ Board link (Replace with title when on that board): board-replace
Full text link: board-full
Custom text link: board-text:"VIP Board"
Index-only link: board-index