From c68a8afbdf30e3cbb35f0834b364f20600151adf Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 26 Feb 2023 22:48:30 -0800 Subject: [PATCH] Switch Google image search back to old version, thanks to https://boards.4channel.org/g/thread/91737566#p91789527 --- src/General/Settings.coffee | 6 ++++++ src/config/Config.coffee | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 52fca178f..96b75a3f6 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -548,6 +548,12 @@ Settings = if compareString < '00001.00014.00022.00002' if data['sauces']? set 'sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://lens.google.com/uploadbyurl?url=%$1') + if compareString < '00001.00014.00022.00003' + if data['sauces']? + set 'sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off') + addSauces [ + '#https://lens.google.com/uploadbyurl?url=%IMG;text:lens' + ] changes loadSettings: (data, cb) -> diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 4760cc3f6..a3443c880 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -774,10 +774,11 @@ Config = https://www.facebook.com/photo.php?fbid=%$1;regexp:/^\\d+_(\\d+)_\\d+_[no]\\b/ # Reverse image search: - https://lens.google.com/uploadbyurl?url=%IMG + https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%IMG&safe=off https://yandex.com/images/search?rpt=imageview&url=%IMG #//tineye.com/search?url=%IMG #//www.bing.com/images/search?q=imgurl:%IMG&view=detailv2&iss=sbi#enterInsights + #https://lens.google.com/uploadbyurl?url=%IMG;text:lens # Specialized reverse image search: //iqdb.org/?url=%IMG