Add '&safe=off' to Google search URL. #711
This commit is contained in:
parent
48564c074d
commit
a459bed99e
@ -343,7 +343,8 @@ Settings =
|
||||
set 'Remember Your Posts', data['Mark Quotes of You'] ? true
|
||||
if compareString < '00001.00011.00022.00000'
|
||||
if data['sauces']?
|
||||
set 'sauces', data['sauces'].replace(/^(#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(?:IMG|URL))%3Fs\.jpg(?=$|;)/mg, '$1')
|
||||
set 'sauces', data['sauces'].replace(/^(#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(?:IMG|URL))%3Fs\.jpg/mg, '$1')
|
||||
set 'sauces', data['sauces'].replace(/^#?\s*https:\/\/www\.google\.com\/searchbyimage\?image_url=%(?:IMG|T?URL)(?=$|;)/mg, '$&&safe=off')
|
||||
changes
|
||||
loadSettings: (data, cb) ->
|
||||
if data.version.split('.')[0] is '2' # https://github.com/loadletter/4chan-x
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user