diff --git a/builds/4chan-X.js b/builds/4chan-X.js
index 26e733680..e2fd80826 100644
--- a/builds/4chan-X.js
+++ b/builds/4chan-X.js
@@ -4730,7 +4730,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)) {
@@ -4752,6 +4752,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)) {
@@ -8907,7 +8911,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 c1067c8ab..0656a8f3b 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -4721,7 +4721,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)) {
@@ -4743,6 +4743,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)) {
@@ -8925,7 +8929,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 e3c1eb29b..a2a4b741f 100644
--- a/builds/crx/script.js
+++ b/builds/crx/script.js
@@ -4644,7 +4644,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)) {
@@ -4666,6 +4666,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)) {
@@ -8827,7 +8831,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