From a82ac15dba29442576d52717192e64c31f236858 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 15 Dec 2015 14:18:59 -0800 Subject: [PATCH] Make Google search for full images work. #670 --- src/General/Config.coffee | 2 +- src/General/Settings.coffee | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 4c7e24da1..708590e1b 100644 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -703,7 +703,7 @@ Config = MD5: '' sauces: """ - https://www.google.com/searchbyimage?image_url=%IMG + https://www.google.com/searchbyimage?image_url=%IMG%3Fs.jpg //iqdb.org/?url=%IMG http://eye.swfchan.com/search/?q=%name;types:swf;sandbox #//tineye.com/search?url=%IMG diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 1764779aa..72ec95775 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -336,6 +336,9 @@ Settings = if compareString < '00001.00011.00020.00003' for key, value of {'Inline Cross-thread Quotes Only': false, 'Pass Link': true} changes[key] = value unless data[key]? + if compareString < '00001.00011.00020.00004' or compareString is '00001.00011.00021.00000' + if data['sauces']? + changes['sauces'] = data['sauces'].replace /^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(?:IMG|URL)(?=$|;)/mg, '$&%3Fs.jpg' changes loadSettings: (data, cb) ->