arnemart / SafariKeywordSearch

A keyword search extension for Safari
Mozilla Public License 2.0
121 stars 6 forks source link

Support for Javascript Bookmarklets #23

Closed porg closed 1 year ago

porg commented 3 years ago

Reproduction to create a new bookmarklet which can be called via SafariKeywordSearch

Expected: New entry gets created

Actual:


Reproduction in use: dropmarkletKeyword query ENTER

Expected: Executes the bookmarklet and sends you to the result

Actual: The full query with the keyword included is sent to the default search engine


https://user-images.githubusercontent.com/737143/135277853-3f2da1e7-1549-4253-bb0e-4480f780dfde.mp4

arnemart commented 3 years ago

Adding support for this would require giving the extension permission to read all the users web content, something I really don't want to do. I will look into it but I am probably going to add an error message if you try to save a javascript: url.

porg commented 3 years ago

Knowing now that a radical privacy loss is nessecary to achieve this, I agree it is not worth it!

But at least the error message instead of failing silently would be good.

arnemart commented 1 year ago

There was some bug in how form errors are handled when creating new custom searches, the upcoming version will not allow you to save unless the URL is a valid https?://-URL.