From 4207ae31c0340a873fe13a1917c82b3494540079 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 19 Apr 2013 00:32:08 +0200 Subject: [PATCH] Add archive redirection to 4plebs. --- src/features.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/features.coffee b/src/features.coffee index 3fc1044c0..1633fdc41 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -2094,6 +2094,8 @@ Redirect = "//nsfw.foolz.us/#{boardID}/full_image/#{filename}" when 'po' "//archive.thedarkcave.org/#{boardID}/full_image/#{filename}" + when 'hr', 'tv' + "http://archive.4plebs.org/#{boardID}/full_image/#{filename}" when 'ck', 'fa', 'lit', 's4s' "//fuuka.warosu.org/#{boardID}/full_image/#{filename}" when 'cgl', 'g', 'mu', 'w' @@ -2112,6 +2114,8 @@ Redirect = "https://nsfw.foolz.us/_/api/chan/post/?board=#{boardID}&num=#{postID}" when 'c', 'int', 'out', 'po' "//archive.thedarkcave.org/_/api/chan/post/?board=#{boardID}&num=#{postID}" + when 'hr', 'x' + "http://archive.4plebs.org/_/api/chan/post/?board=#{boardID}&num=#{postID}" # for fuuka-based archives: # https://github.com/eksopl/fuuka/issues/27 to: (data) -> @@ -2123,6 +2127,8 @@ Redirect = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data when 'int', 'out', 'po' Redirect.path '//archive.thedarkcave.org', 'foolfuuka', data + when 'hr' + Redirect.path 'http://archive.4plebs.org', 'foolfuuka', data when 'ck', 'fa', 'lit', 's4s' Redirect.path '//fuuka.warosu.org', 'fuuka', data when 'diy', 'g', 'sci'