PKM-er / Obsidian-Surfing

An Obsidian plugin that lets you browse the web within Obsidian.
MIT License
411 stars 22 forks source link

[Bug]: Perplexity search engine freezes Obsidian #250

Open SirDotJ opened 1 month ago

SirDotJ commented 1 month ago

Bug Description

So I'm using Perplexity for search, but when I try to add it as a search engine and type anything into the search bar on a new tab the entire application freezes. You can still drag the window around and the "Application is not responding" message doesn't pop up. But clicking any buttons, notes, tabs etc. inside the app does nothing.

Relevant Screenshot

image ^how the search tab looks like in plugin settings

image ^how the general tab looks like in plugin settings

Bellow is a list of installed and enabled community plugins: image image image image

To Reproduce

  1. Install the plugin
  2. Go to "Search" tab
  3. Enable "Always Show Custom Engines"
  4. Add a new engine
  5. Name: "Perplexity"
  6. Url: "https://www.perplexity.ai/search?s=o&q=" and also tried "https://www.perplexity.ai/search?s=o&q=%s"
  7. Set "Perplexity" engine as default
  8. Open a new tab
  9. Type anything into the "Search with Perplexity or enter address" bar At this point Obsidian freezes and I have to restart the entire app.

Obsidian Version

v1.5.12 (Installer version: v1.4.13)

web-browser-only

Checklist

SirDotJ commented 1 month ago

Might also be relevant: every time I use perplexity outside of Obsidian it asks to confirm if I am a human or not using Cloudflare:

image

SirDotJ commented 1 month ago

Update: this only occurs when using search on the top of the empty note page. If "Show Search Bar In Empty Page" is enabled then any searches occur just fine by typing in there.

Except for the fact that adding custom engine "Perplexity" with URL "https://www.perplexity.ai/search?s=o&q=" makes the Google search page appear instead of Perplexity.

Also clicking on the search bar at the top of the empty page freezes the application regardless of what search engine is current default.