Add /wsg/ archive redirection for threads and images.
This commit is contained in:
parent
05cb2fcd3c
commit
d0ec997182
@ -2882,7 +2882,6 @@
|
||||
if (state !== 'visible') {
|
||||
return;
|
||||
}
|
||||
$.log(state);
|
||||
Updater.unsuccessfulFetchCount = 0;
|
||||
if (Updater.timer.textContent < -Conf['Interval']) {
|
||||
return Updater.timer.textContent = -Updater.getInterval();
|
||||
@ -4376,6 +4375,7 @@
|
||||
case 'sp':
|
||||
case 'tg':
|
||||
case 'vg':
|
||||
case 'wsg':
|
||||
return "//archive.foolz.us/" + board + "/full_image/" + filename;
|
||||
case 'u':
|
||||
return "//nsfw.foolz.us/" + board + "/full_image/" + filename;
|
||||
@ -4392,6 +4392,7 @@
|
||||
case 'tv':
|
||||
case 'v':
|
||||
case 'vg':
|
||||
case 'wsg':
|
||||
case 'dev':
|
||||
case 'foolz':
|
||||
return "//archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json";
|
||||
@ -4416,6 +4417,7 @@
|
||||
case 'tv':
|
||||
case 'v':
|
||||
case 'vg':
|
||||
case 'wsg':
|
||||
case 'dev':
|
||||
case 'foolz':
|
||||
url = "//archive.foolz.us/" + path + "/";
|
||||
|
||||
@ -3479,7 +3479,7 @@ Redirect =
|
||||
image: (board, filename) ->
|
||||
# Do not use g.BOARD, the image url can originate from a cross-quote.
|
||||
switch board
|
||||
when 'a', 'jp', 'm', 'sp', 'tg', 'vg'
|
||||
when 'a', 'jp', 'm', 'sp', 'tg', 'vg', 'wsg'
|
||||
"//archive.foolz.us/#{board}/full_image/#{filename}"
|
||||
when 'u'
|
||||
"//nsfw.foolz.us/#{board}/full_image/#{filename}"
|
||||
@ -3492,7 +3492,7 @@ Redirect =
|
||||
# "https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/full_image/#{filename}"
|
||||
post: (board, postID) ->
|
||||
switch board
|
||||
when 'a', 'co', 'jp', 'm', 'sp', 'tg', 'tv', 'v', 'vg', 'dev', 'foolz'
|
||||
when 'a', 'co', 'jp', 'm', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg', 'dev', 'foolz'
|
||||
"//archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
||||
when 'u', 'kuku'
|
||||
"//nsfw.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
||||
@ -3505,7 +3505,7 @@ Redirect =
|
||||
else
|
||||
"#{board}/post/#{postID}"
|
||||
switch board
|
||||
when 'a', 'co', 'jp', 'm', 'sp', 'tg', 'tv', 'v', 'vg', 'dev', 'foolz'
|
||||
when 'a', 'co', 'jp', 'm', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg', 'dev', 'foolz'
|
||||
url = "//archive.foolz.us/#{path}/"
|
||||
if threadID and postID
|
||||
url += "##{postID}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user