Add /an/ and /toy/ archive redirection.
This commit is contained in:
parent
daac7ce5ee
commit
d76c999101
@ -3670,6 +3670,8 @@
|
|||||||
case 'mu':
|
case 'mu':
|
||||||
case 'w':
|
case 'w':
|
||||||
return "http://archive.rebeccablacktech.com/" + board + "/" + mode + "/" + id;
|
return "http://archive.rebeccablacktech.com/" + board + "/" + mode + "/" + id;
|
||||||
|
case 'an':
|
||||||
|
case 'toy':
|
||||||
case 'x':
|
case 'x':
|
||||||
return "http://archive.xfiles.to/" + board + "/" + mode + "/" + id;
|
return "http://archive.xfiles.to/" + board + "/" + mode + "/" + id;
|
||||||
case 'e':
|
case 'e':
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- Mayhem
|
||||||
|
Add /an/ and /toy/ archive redirection.
|
||||||
|
|
||||||
2.31.3
|
2.31.3
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -2773,6 +2773,13 @@ Redirect =
|
|||||||
switch board
|
switch board
|
||||||
when 'a', 'co', 'jp', 'm', 'tg', 'u', 'vg'
|
when 'a', 'co', 'jp', 'm', 'tg', 'u', 'vg'
|
||||||
"http://archive.foolz.us/#{board}/full_image/#{filename}"
|
"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') ->
|
thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') ->
|
||||||
return unless Conf['404 Redirect'] or mode is 'post'
|
return unless Conf['404 Redirect'] or mode is 'post'
|
||||||
switch board
|
switch board
|
||||||
@ -2784,7 +2791,7 @@ Redirect =
|
|||||||
"https://archive.installgentoo.net/#{board}/#{mode}/#{id}"
|
"https://archive.installgentoo.net/#{board}/#{mode}/#{id}"
|
||||||
when 'cgl', 'mu', 'w'
|
when 'cgl', 'mu', 'w'
|
||||||
"http://archive.rebeccablacktech.com/#{board}/#{mode}/#{id}"
|
"http://archive.rebeccablacktech.com/#{board}/#{mode}/#{id}"
|
||||||
when 'x'
|
when 'an', 'toy', 'x'
|
||||||
"http://archive.xfiles.to/#{board}/#{mode}/#{id}"
|
"http://archive.xfiles.to/#{board}/#{mode}/#{id}"
|
||||||
when 'e'
|
when 'e'
|
||||||
"https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/#{mode}/#{id}"
|
"https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/#{mode}/#{id}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user