diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 0936d13f0..18fd43c5f 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -1592,7 +1592,7 @@ return; } as = $$('#full-board-list a', Header.bar); - nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map(function(t) { + nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map(function(t) { var a, board, m, _i, _len; if (/^[^\w@]/.test(t)) { @@ -1609,8 +1609,8 @@ } if (/^external/.test(t)) { a = $.el('a', { - href: (t.match(/-url:"(.+)"/) || [null, '+'])[1], - textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1], + href: (t.match(/\,"(.+)"/) || [null, '+'])[1], + textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1], className: 'external', target: '_blank' }); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 6211ed016..5c299d55e 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1588,7 +1588,7 @@ return; } as = $$('#full-board-list a', Header.bar); - nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map(function(t) { + nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map(function(t) { var a, board, m, _i, _len; if (/^[^\w@]/.test(t)) { @@ -1605,8 +1605,8 @@ } if (/^external/.test(t)) { a = $.el('a', { - href: (t.match(/-url:"(.+)"/) || [null, '+'])[1], - textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1], + href: (t.match(/\,"(.+)"/) || [null, '+'])[1], + textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1], className: 'external', target: '_blank' }); diff --git a/builds/crx/script.js b/builds/crx/script.js index 0d1eadd8a..d96b8dfdb 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1590,7 +1590,7 @@ return; } as = $$('#full-board-list a', Header.bar); - nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map(function(t) { + nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map(function(t) { var a, board, m, _i, _len; if (/^[^\w@]/.test(t)) { @@ -1607,8 +1607,8 @@ } if (/^external/.test(t)) { a = $.el('a', { - href: (t.match(/-url:"(.+)"/) || [null, '+'])[1], - textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1], + href: (t.match(/\,"(.+)"/) || [null, '+'])[1], + textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1], className: 'external', target: '_blank' }); diff --git a/src/General/Header.coffee b/src/General/Header.coffee index ff2a55be7..94de5a81a 100644 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -132,7 +132,7 @@ Header = $.rmAll list return unless text as = $$('#full-board-list a', Header.bar) - nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map (t) -> + nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map (t) -> if /^[^\w@]/.test t return $.tn t if /^toggle-all/.test t @@ -144,8 +144,8 @@ Header = return a if /^external/.test t a = $.el 'a', - href: (t.match(/-url:"(.+)"/) || [null, '+'])[1] - textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1] + href: (t.match(/\,"(.+)"/) || [null, '+'])[1] + textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1] className: 'external' target: '_blank' return a diff --git a/src/General/html/Settings/Advanced.html b/src/General/html/Settings/Advanced.html index 99bb1f3c5..973efa068 100644 --- a/src/General/html/Settings/Advanced.html +++ b/src/General/html/Settings/Advanced.html @@ -21,7 +21,7 @@
board-text:"VIP Board"board-indexboard-catalogexternal-text:"Google"-url:"http://www.google.com"external-text:"Google","http://www.google.com"board-index-text:"VIP Index"toggle-all