From 86e4e062998c7c68c99ab8cb5ca049aecf031b6b Mon Sep 17 00:00:00 2001 From: name Date: Mon, 11 Dec 2017 04:02:02 -0800 Subject: [PATCH] Disable 'Redirect to HTTPS' outside of 4chan for now. --- src/main/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 1bfe5327d..ca7f27e3a 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -80,7 +80,7 @@ Main = items[key] = undefined for key of Conf items['previousversion'] = undefined ($.getSync or $.get) items, (items) -> - if !$.perProtocolSettings and (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:' + if !$.perProtocolSettings and /\.4chan\.org$/.test(location.hostname) and (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:' location.replace('https:' + location.host + location.pathname + location.search + location.hash) return $.asap docSet, ->