diff --git a/src/General/Header.coffee b/src/General/Header.coffee index 939582a8f..1a7087b00 100755 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -173,7 +173,7 @@ Header = return unless boardnav boardnav = boardnav.replace /(\r\n|\n|\r)/g, ' ' as = $$ '#full-board-list a[title]', Header.boardList - nodes = boardnav.match(/[\w@]+(-(all|title|replace|full|index|catalog|archive|text:"[^"]+"(,"[^"]+")?))*|[^\w@]+/g).map (t) -> + nodes = boardnav.match(/[\w@]+(-(all|title|replace|full|index|catalog|archive|expired|text:"[^"]+"(,"[^"]+")?))*|[^\w@]+/g).map (t) -> if /^[^\w@]/.test t return $.tn t text = url = null @@ -222,6 +222,12 @@ Header = else return $.tn a.textContent + if /-expired/.test t + if boardID not in ['b', 'f'] + a.href = "/#{boardID}/archive" + else + return $.tn a.textContent + $.addClass a, 'navSmall' if boardID is '@' return a $.tn t diff --git a/src/General/html/Settings/Advanced.html b/src/General/html/Settings/Advanced.html index 5d5dc1305..c93ac9c33 100755 --- a/src/General/html/Settings/Advanced.html +++ b/src/General/html/Settings/Advanced.html @@ -19,6 +19,7 @@
In the following examples for /g/, g can be changed to a different board ID (a, b, etc...), the current board (current), or the Twitter link (@).
Board link: g
Archive link: g-archive
+
Internal archive link: g-expired
Title link: g-title
Board link (Replace with title when on that board): g-replace
Full text link: g-full
diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index 5a0d12725..77564b00e 100755 --- a/src/Miscellaneous/CatalogLinks.coffee +++ b/src/Miscellaneous/CatalogLinks.coffee @@ -52,6 +52,7 @@ CatalogLinks = continue if a.hostname not in ['boards.4chan.org', 'catalog.neet.tv', '4index.gropes.us'] or !(board = a.pathname.split('/')[1]) or board in ['f', 'status', '4chan'] or + a.pathname.split('/')[2] is 'archive' or $.hasClass a, 'external' # Href is easier than pathname because then we don't have