CanisLupus / swift-selection-search

Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
https://addons.mozilla.org/firefox/addon/swift-selection-search/
MIT License
213 stars 27 forks source link

[Feature Request] Run on sites with restrictions #258

Open e-t-l opened 9 months ago

e-t-l commented 9 months ago

There's an option that can be given to extensions that puts a toggle in the extension manager, near where users toggle e.g. allowing the extension in Incognito mode, that says "Run on sites with restrictions." It allows the extension to run on protected pages, like the browser's Settings page ("about:preferences" in Firefox). Could this option be added to SSS?

I expect it would be as straightforward as adding a line to the manifest.json, similar to incognito. I would have just submitted a PR with it to you, except I couldn't figure out where to find the develop docs that describe it. As you're a much more experienced developer than I am, I'm hoping you'll be able to find it without much trouble!

CanisLupus commented 9 months ago

Hi! SSS is not really in active development but I looked into this now, in case it was simple to add. :)

It seems like none of the extensions I have installed show this option (Firefox 119). Information about this feature on the web also seems extremely sparse and there doesn't seem to be anything about it in Mozilla's docs (that I could find).

Since this option was added so that the user can re-enable extensions Mozilla blocked on certain pages, maybe it's also up to Mozilla to show it on extension pages. Perhaps it only shows up if the extension was explicitly blocked from certain pages at all. I'm assuming that all extensions are still blocked in, for example, the addons.mozilla.org (I could be wrong!). But truly, I couldn't find any information on how this works. 🤔

e-t-l commented 9 months ago

Ah ok, thank you for checking!