stoically / temporary-containers

Firefox Add-on that lets you open automatically managed disposable containers
https://addons.mozilla.org/firefox/addon/temporary-containers/
MIT License
852 stars 60 forks source link

Feature Request: Search Google for xyz in new container #564

Open Genius1237 opened 2 years ago

Genius1237 commented 2 years ago

When one right clicks on a link, there is an option to open the new tab in a new container. Would it be possible to add the same feature in for the "Search Google for xyz" that pops up when you highlight some text and right click on it?

stoically commented 2 years ago

Possible yes, tho I'd prefer the search engine to be configurable with no default set.

Genius1237 commented 2 years ago

Yes. Whatever is the default search engine is set in the browser.

stoically commented 2 years ago

Not sure an API to get that information exists, but that would be a possibility, yeah

Genius1237 commented 2 years ago

Firefox already has a "Search with Google" (replace google with default search engine) option that comes up when you right click on some selected text. Would it be possible to just hook into what this does to implement this feature?

stoically commented 2 years ago

Afaik there's no hook or API for the context menu to hook into an already existing entry. Only new entries can be added.