From b1c639252d82fcb7f98a1809c4bd86edac8582da Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 14 Jun 2012 17:22:37 +0200 Subject: [PATCH] Use the correct protocol when using foolz' API. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a9bcf0c21..daec9e850 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3933,7 +3933,7 @@ case 'u': case 'v': case 'vg': - return "http://archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json"; + return "//archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json"; } }, thread: function(board, id, mode) { diff --git a/script.coffee b/script.coffee index 1f9c2d16e..39e616102 100644 --- a/script.coffee +++ b/script.coffee @@ -3101,7 +3101,7 @@ Redirect = post: (board, postID) -> switch board when 'a', 'co', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg' - "http://archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json" + "//archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json" thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') -> return unless Conf['404 Redirect'] or mode is 'post' switch board