obsidian-search-on-internet icon indicating copy to clipboard operation
obsidian-search-on-internet copied to clipboard

Google not working

Open nhaouari opened this issue 4 years ago • 9 comments

Hey, Thank you for the plugin, it works like a charm for other websites but for google I get the following error:

image

Environment:

  • Obsidian v0.10.11
  • Search on Internet v0.3.0 Best regards.

nhaouari avatar Jan 29 '21 16:01 nhaouari

Hi! Are you using the default query for Google or have you modified it?

HEmile avatar Jan 30 '21 07:01 HEmile

Hi! Are you using the default query for Google or have you modified it?

I use the default query for google.

nhaouari avatar Feb 02 '21 06:02 nhaouari

Hi! Is this still an issue :)?

HEmile avatar Feb 16 '21 20:02 HEmile

I have updated Obsidian to version 0.11.1, unfortunately, there is another error:

webhp:130 Blocked autofocusing on a <input> element in a cross-origin subframe.

image

nhaouari avatar Feb 17 '21 09:02 nhaouari

Hi, you don't seem to be using the correct query for Google. It should be https://www.google.com/search?&q={{query}}, not https://www.google.com/search{{query}}

HEmile avatar Feb 17 '21 10:02 HEmile

https://www.google.com/search?&q={{query}}

I have tried many alternatives, with google, it always shows a page that looks like this: image

nhaouari avatar Feb 17 '21 10:02 nhaouari

same error for me

phibr0 avatar Feb 22 '21 17:02 phibr0

I had a problem with patents.google.com, where it seemed to execute the query, but "{{query}}" was displayed in the search box.

https://patents.google.com/?q={{query}}&oq={{query}}

I changed it to the following and it seem to both execute the query and display it in the search box.

https://patents.google.com/?q={{query}}&oq={{title}}

Maybe it was only doing one replace for each substitution, so it only did one for each possibility (limit one per string). The regular search

https://www.google.com/search?&q={{query}}

appears to work for me.

kinoc avatar Feb 25 '21 04:02 kinoc

@kinoc Indeed, that's a bug on my part: It only replaces {{query}} a single time and {{title}} a single time... So I'm impressed you found that workaround...! I didn't realize this would be something common.

@nhaouari @phibr0 The error you're getting is the cookie screen of Google. I think you might be able to work around this by accepting the cookies on another Google site, like calendar. Otherwise, you'll have to do with eg DuckDuckGo

HEmile avatar Feb 25 '21 09:02 HEmile