From b587719af8335f6fc03a1be1e7f3f01bc335eac4 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 6 Feb 2013 20:26:25 +0100 Subject: [PATCH] Close #921. --- 4chan_x.user.js | 4 ++++ changelog | 2 ++ script.coffee | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index bd01854a9..a97adabe6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4782,6 +4782,7 @@ return "//archive.foolz.us/" + board + "/full_image/" + filename; case 'u': return "//nsfw.foolz.us/" + board + "/full_image/" + filename; + case 'int': case 'po': return "http://archive.thedarkcave.org/" + board + "/full_image/" + filename; case 'ck': @@ -4820,6 +4821,8 @@ case 'u': case 'kuku': return "//nsfw.foolz.us/_/api/chan/post/?board=" + board + "&num=" + postID; + case 'c': + case 'int': case 'po': return "http://archive.thedarkcave.org/_/api/chan/post/?board=" + board + "&num=" + postID; } @@ -4850,6 +4853,7 @@ case 'kuku': url = Redirect.path('//nsfw.foolz.us', 'foolfuuka', data); break; + case 'int': case 'po': url = Redirect.path('http://archive.thedarkcave.org', 'foolfuuka', data); break; diff --git a/changelog b/changelog index 072314455..aceb901c2 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- Mayhem + Add /int/ archive redirection for threads, and post resurrection. 2.37.6 - Mayhem diff --git a/script.coffee b/script.coffee index 82be337d3..fd573c7ba 100644 --- a/script.coffee +++ b/script.coffee @@ -3944,7 +3944,7 @@ Redirect = "//archive.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" when 'u', 'kuku' "//nsfw.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" - when 'po' + when 'c', 'int', 'po' "http://archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}" to: (data) -> unless data.isSearch @@ -3955,7 +3955,7 @@ Redirect = url = Redirect.path '//archive.foolz.us', 'foolfuuka', data when 'u', 'kuku' url = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data - when 'po' + when 'int', 'po' url = Redirect.path 'http://archive.thedarkcave.org', 'foolfuuka', data when 'ck', 'lit' url = Redirect.path '//fuuka.warosu.org', 'fuuka', data