Add /u/ archive redirection.

This commit is contained in:
Nicolas Stepien 2011-12-29 02:04:39 +01:00
parent b2c3c6522f
commit 6df5a9311b
2 changed files with 4 additions and 2 deletions

View File

@ -2838,6 +2838,7 @@
case 'm':
case 'tg':
case 'tv':
case 'u':
return "http://archivethumb.foolz.us/board/" + board + "/img/" + filename;
}
},
@ -2848,6 +2849,7 @@
case 'm':
case 'tg':
case 'tv':
case 'u':
return "http://archive.foolz.us/" + g.BOARD + "/thread/" + g.THREAD_ID;
case 'diy':
case 'g':

View File

@ -2231,11 +2231,11 @@ redirect =
location.href = url if url
image: (board, filename) -> #board must be given, the image can originate from a cross-quote
switch board
when 'a', 'jp', 'm', 'tg', 'tv'
when 'a', 'jp', 'm', 'tg', 'tv', 'u'
"http://archivethumb.foolz.us/board/#{board}/img/#{filename}"
thread: ->
switch g.BOARD
when 'a', 'jp', 'm', 'tg', 'tv'
when 'a', 'jp', 'm', 'tg', 'tv', 'u'
"http://archive.foolz.us/#{g.BOARD}/thread/#{g.THREAD_ID}"
when 'diy', 'g', 'sci'
"http://archive.installgentoo.net/#{g.BOARD}/thread/#{g.THREAD_ID}"