diff --git a/4chan_x.user.js b/4chan_x.user.js index cec1fef38..6b4fe2c3f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3670,6 +3670,8 @@ case 'mu': case 'w': return "http://archive.rebeccablacktech.com/" + board + "/" + mode + "/" + id; + case 'an': + case 'toy': case 'x': return "http://archive.xfiles.to/" + board + "/" + mode + "/" + id; case 'e': diff --git a/changelog b/changelog index fff492b33..3f8c5cdbb 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- Mayhem + Add /an/ and /toy/ archive redirection. 2.31.3 - Mayhem diff --git a/script.coffee b/script.coffee index 7697448a0..bf1b0a0e0 100644 --- a/script.coffee +++ b/script.coffee @@ -2773,6 +2773,13 @@ Redirect = switch board when 'a', 'co', 'jp', 'm', 'tg', 'u', 'vg' "http://archive.foolz.us/#{board}/full_image/#{filename}" + # these will work whenever https://github.com/eksopl/fuuka/issues/23 is done + # when 'cgl', 'g', 'w' + # "http://archive.rebeccablacktech.com/#{board}/full_image/#{filename}" + # when 'an', 'toy', 'x' + # "http://archive.xfiles.to/#{board}/full_image/#{filename}" + # when 'e' + # "https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/full_image/#{filename}" thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') -> return unless Conf['404 Redirect'] or mode is 'post' switch board @@ -2784,7 +2791,7 @@ Redirect = "https://archive.installgentoo.net/#{board}/#{mode}/#{id}" when 'cgl', 'mu', 'w' "http://archive.rebeccablacktech.com/#{board}/#{mode}/#{id}" - when 'x' + when 'an', 'toy', 'x' "http://archive.xfiles.to/#{board}/#{mode}/#{id}" when 'e' "https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/#{mode}/#{id}"