Avoid breaking sauce settings of people with links to original Google Images and Google Lens, provided they didn't already update to v1.14.22.3.
This commit is contained in:
parent
14e67e9a95
commit
7295b21b73
@ -545,12 +545,11 @@ Settings =
|
||||
if compareString < '00001.00014.00020.00004'
|
||||
if data['archiveLists']?
|
||||
set 'archiveLists', data['archiveLists'].replace('https://nstepien.github.io/archives.json/archives.json', 'https://4chenz.github.io/archives.json/archives.json')
|
||||
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')
|
||||
set 'sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(IMG|T?URL)&safe=off(?=$|;)/mg, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off')
|
||||
if compareString is '00001.00014.00022.00002' and not /\bsbisrc=/.test(data['sauces'])
|
||||
set 'sauces', data['sauces'].replace(/^#?\s*https:\/\/lens\.google\.com\/uploadbyurl\?url=%(IMG|T?URL)(?=$|;)/m, 'https://www.google.com/searchbyimage?sbisrc=4chanx&image_url=%$1&safe=off')
|
||||
addSauces [
|
||||
'#https://lens.google.com/uploadbyurl?url=%IMG;text:lens'
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user