From 43aae50ac595aaf70990bd28566940e4e4f71da8 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 7 Feb 2013 13:22:24 +0100 Subject: [PATCH] thedarkcave now has https support. --- 4chan_x.user.js | 7 +++---- script.coffee | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a97adabe6..17851beaa 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4782,9 +4782,8 @@ 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; + return "//archive.thedarkcave.org/" + board + "/full_image/" + filename; case 'ck': case 'lit': return "//fuuka.warosu.org/" + board + "/full_image/" + filename; @@ -4824,7 +4823,7 @@ case 'c': case 'int': case 'po': - return "http://archive.thedarkcave.org/_/api/chan/post/?board=" + board + "&num=" + postID; + return "//archive.thedarkcave.org/_/api/chan/post/?board=" + board + "&num=" + postID; } }, to: function(data) { @@ -4855,7 +4854,7 @@ break; case 'int': case 'po': - url = Redirect.path('http://archive.thedarkcave.org', 'foolfuuka', data); + url = Redirect.path('//archive.thedarkcave.org', 'foolfuuka', data); break; case 'ck': case 'lit': diff --git a/script.coffee b/script.coffee index fd573c7ba..a9658ab9a 100644 --- a/script.coffee +++ b/script.coffee @@ -3929,7 +3929,7 @@ Redirect = when 'u' "//nsfw.foolz.us/#{board}/full_image/#{filename}" when 'po' - "http://archive.thedarkcave.org/#{board}/full_image/#{filename}" + "//archive.thedarkcave.org/#{board}/full_image/#{filename}" when 'ck', 'lit' "//fuuka.warosu.org/#{board}/full_image/#{filename}" when 'cgl', 'g', 'mu', 'w' @@ -3945,7 +3945,7 @@ Redirect = when 'u', 'kuku' "//nsfw.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" when 'c', 'int', 'po' - "http://archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}" + "//archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}" to: (data) -> unless data.isSearch {threadID} = data @@ -3956,7 +3956,7 @@ Redirect = when 'u', 'kuku' url = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data when 'int', 'po' - url = Redirect.path 'http://archive.thedarkcave.org', 'foolfuuka', data + url = Redirect.path '//archive.thedarkcave.org', 'foolfuuka', data when 'ck', 'lit' url = Redirect.path '//fuuka.warosu.org', 'fuuka', data when 'diy', 'sci'