This is absolutely fantastic work. One of the things I missed the most when upgrading to Quantum was losing the old Context Search extension by Ben Basson. Since then I've been delighted to discover that several replacements are available, but I think this one is the best of all of them.
It's super-configurable and you can adjust just about all aspects of how the extension works. The options page is a little tricky to work out initially, but you only need to tweak the defaults if you don't want to get too bogged down in the details.
There are three ways you can perform a search:
a) The normal way, through a sub-menu on the context menu
b) Directly on the context menu without needing the open a sub-menu (by installing the separate "Selection Context Search - mini" extensions)
c) Using the pop-up icons for one-click searching without the context menu
You can control where the search page appears. I prefer it as a background tab next to the current tab.
What I love is that you can replace a number of other extensions with this one. There are extensions that offer to translate the current page for you, but here you can translate either the selected text or the current page. Likewise, there are extensions for performing reverse Google Image searches, but this extension does that too. Brilliant!
Good stuff. It covers 3 types of add-ons in e.g. Context Search, Reverse image search and Server info/Cache browser. Has lots of servers built, can be very organized. I don't care for the restrictive license (on an open platform) so -1 star.
Consider adding POST method for more websites support and bookmarklet support.
Ruins the ability to paste into browser window, such as for a search term.
The popup should stay the same size regardless of site specific custom zoom level, now it gets bigger/smaller if custom zoom is set.
Popup's icons are still "missing" if 3rd party is blocked in uBlock Origin, just square with arrow is showing and not the sites correct icons)
Unfortunately, the icons of pop-up are whimsical and do not appear every time :
I tried with local icon or by adding the link towards the favicon, nothing works... (FF.61b4)
best context menu search add-ons
Looks nice, but why doesn't it use the opensearch plugins installed?
Nifty tool this is.
Best context search add-on I've seen. Thanks a lot!
Thank you for this addon!
Allow to change via options/settings the, relative to the selection, position of the popup window when selecting text.
I am asking this because the popup window is now conflicting with the popup icon/bubble of the add-on "Google™ Translator" (https://addons.mozilla.org/en-US/firefox/addon/google-translator-webextension/).
The BEST for right click context search with multiple search engines and very configurable and easily add new search engines.
A "copy to clipboard" tile would be great...
I love this Selection Context Search (SCS) extension and like that you're regularly adding new/improved features. It's brilliant that you respond speedily to people's review comments and always positively. I use it both in Firefox and Chrome.
*** Feature Request ***
I am a fan of the "Autocopy" function (Options: Copy the selected text to clipboard). However, I often mess things up when I come to paste from clipboard into a text field within the browser: as I highlight the target text (i.e. I wish to overwrite this text), the selection action itself copies the TARGET text to clipboard, replacing the clipboard SOURCE text I intended to paste, and so when I press Ctrl-V, the same text is pasted back and I've lost what was in the clipboard. That's not the extension's "fault"... it's me being a dumb user who doesn't think to blank out target text before copying something to clipboard (from either in the browser or any other application).
=== Solution 1 - easy, but incomplete ===
Perhaps under "Options: Copy the selected text to clipboard", you could also provide a user-selectable modifier key (Ctrl / Alt / Shift) to temporarily suspend "Autocopy" so that when I press that key during a text highlight (via mouse drag or double-click) the extension won't copy the text to clipboard.
Of course I'm still likely to regularly forget to press the "suspend autocopy" key... and I've tried to figure out if there's a way to solve the problem of unintended overwrite of clipboard contents. My super-duper solution is...
=== Solution 2 - complex, complete ===
1) Under "Options: Copy the selected text to clipboard" (Autocopy), provide new user-selectable Options "Paste from Saved Clipboard - Popup" & "Paste from Saved Clipboard - Sub-menu". Alternatively, these could be provided via a new Search TYPE "Paste from Saved Clipboard" so it could be positioned on the sub-menu and set to show in popup just like other standard entries. I'd rely on the popup option because that would be my visual cue/reminder whenever I highlight text for pasting over.
2) If Autocopy is enabled, SCS would always first save existing clipboard contents into the extension's own storage area before copying the current selection to clipboard. Then, whenever a user clicks on "Paste from Saved Clipboard", SCS would use the text it has saved in it's extension "saved clipboard" storage rather than what it has itself just copied to clipboard from the selection.
- What if "Paste from Saved Clipboard" is chosen but Autocopy isn't set on? Just paste direct from System clipboard. Unless you choose to prevent the user selecting option "Paste from Saved Clipboard" except when Autocopy has also been selected.
- Can we be 100% sure that the saved clipboard storage in the extension is secure and could not be accessed by any other extension / browser code? If not, then we'd need a warning note in an 'i' (info) flag next to the existing option "Copy the selected text to clipboard" so users would know to de-select this option if working with sensitive data. Or perhaps the saved clipboard can be set to self-destruct after xxx seconds?
Understandably you may feel the suggestions are beyond the scope of your extension. It's been fun thinking it up anyway!
Selection Context Search 5.18 / Firefox 58.0.2 (64-bit) / Windows 10 Home Version 1709
Great add-on and easy to use.
I was wondering if in future versions, you could add a feature where we could see the iconbar only when we select a text while pressing a key (e.g. Shift).
Also, I just noticed that after adding some search lines in the Options page, the buttons (Add, Delete...) at the top of the page disappeared. I can delete entries from the keyboard, drag them with the mouse or add others by right-clicking on a textbox but maybe there is something you can correct.
When I load the Default Settings, the buttons reappear.
Thanks a lot!
That is a nice idea. I add it to my to-do list.
Impressive and very complete extension.
It allows me to synchronize all my global search engines using bookmarks. I also add custom local search engine depending on my need.
I don't know why this is not an extension with the Mozilla's "Featured Extension" badge (for instance "Swift Selection Search" has the badge, but is really less powerful).
One issue though:
When using bookmarks, the separators are taking the same height as a normal bookmark in the context search menu. Couldn't you display it like a object in the local Selection Context Search menu (reduced height)? I will review my rating to 5 stars is this issue is fixed.
Feature Request: "Copy to clipboard" button like this addon:
great ideas but poor implementation.
when I enable this addon, and then do any bookmark operation my memory usage goes as high as my max RAM.
and bookmark operation becomes very slow. so for example if I copy 400 bookmark from one folder to another folder, the memory usage goes very high and bokkmarks get copied almost one by one and very slowly.
I think this is because I use the feature that uses search engines from bookmarks and the addon searches bookmarks every time a bookmark changes, which is a very bad and time consuming implementation.
the addon should have an option (or a button) to load from bookmark only once, and not monitor bookmarks.
fixed in new version.
thanks for fast reply.
I already went with another addon though.
because every time I open the menu with right click the icons of my search engines are loaded through internet one by one as if there is no such thing as caching. either have an option to disable icons or cache them or give custom icon support that are not internet dependent.
thanks for the reply.
I changed my rating of your addon just because you give fast replies :).
if I remember correctly in earlier version of firefox I had addons that you could give '.ico' files as icons.
I think firefox new system has limitation for file storage on profile so you cant easily save icon files and use them but maybe that 'unlimited storage' can be used somehow as a workaround to store icons.
If it is not obvious I am not a developer so I take your work for it.
and thanks again.
UPDATE: There is no way for the add-ons to cache an internet icon as far as I know. Please let me know if you saw that implemented somewhere.
Possible solutions are:
1. You can download the icons on your computer and in the Add-on Options page specify the local icon file address for each row. The local address should be specified like "file:///C:/icons/myicon.ico". The standard icon address on the internet is http://www.(DOMAIN).com/favicon.ico . So for google it is http://www.google.com/favicon.ico
2. I can supply some icons with the extension. But this will not cover all the websites.
3. I will implement the "Disabled icon" option as you suggested.
Please let me know if you have other solutions or suggestions.
Thank you for the bug reporting.
The issue is fixed now in v5.18.
There is no need for an extra option.
Good - but the popup selection source keeps getting included in some of my html edits!
That may be due to some other addon interaction but it is very annoying - so I disabled the popup selection option for each items which included it and I just use feature via the context menu which is powerfully configurable anyway.
I added many custom "searches" - e.g. https://unfurlr.com/?url=~$S$~ , https://toolbar.netcraft.com/site_report?url=~$D$~#last_reboot and https://www.whois.com/whois/~$D$~ ...
Suggestion: An overall master toggle for popup selection on/off would be nice
There is already a master option to disable the popup window. Is the first option under the table "Show the popup window when selecting text".
Can you give me an example of page where the popup window interfere? There is a specific scenario where this could happen and I'm curious if this is the same case.
I have two problems. No icons are displayed in the poput window.
And there is an extra unnecessary submenu.
Windows 7 64-bit, Firefox 58
Icons are blocked by uBlock.
Extra unnecessary submenu ➜ Show "Add Search Page" in the menu when right click on a text field
If you click the "More options" link from the Add-on Options page you will see the option to disable the "Add Search Page" menu item.
I agree that the menu does not look good when right clicking on a selected text in an input field. I will find a better solution.
Just perfect! I switched from Chrome recently, where I used a similar, but much inferior extension. This one is among a few reasons why I'm probably not switching back to Chrome anytime soon.
Popup window is a real helper. And I wish Firefox itself had such a flexible and easy way of adding search engines as this extension has.
One minor drawback - it seems that the extension doesn't cache search engine icons, so they are sometimes redrawn one by one rather slowly.
I could not find a nice solution for this issue.
A solution, which will work only for the context menu, is do download on your computer the icons. Then, in the Options page, set the "Icon address" for each row to point to the local file. This address should be like "file:///C:/icons/google.ico".
Probably the best of them all, but proprietary.
We have to provide the sources and the method of obfuscation to Mozilla team for review.
Firefox has made almost impossible to add custom search engines to the search bar and impossible to manage/edit the search engines that are there. This add-on is very useful! And it uses the search engines you create as bookmarks with the command "Add a keyword for this search". And it's very customizable. Thank you!
Only "critic": when you want to search a word that is inside a text area, it opens a second submenu.
I've been trying to use this addon, by trying every version that is released, but after a few minutes that I enable this addon, I get a huge spike on Firefox memory usage till it uses all my memory available (I have 16GB RAM) and crashes my Firefox or sometimes leaves my window freezed!!! Can you please fix this?!? I'm certain that it's due to your addon because when I left it disabled I don't have this
Did you have this problem before the popup window was added?
Do you have this problem when the browser is just opened, with a blank tab? It is possible that a web page can react to this add-on. I never had this but it is possible.
Please let me know.
Since the last Firefox update (58), when right clicking and going to sub-menu, the icons are no longer displayed. Even those whose I put an address in the configuration panel.
EDIT: sometimes it's working but sometimes not. I need to restart Firefox to correct the problem. Not very embarrassing but I have to say it.Maybe there is a latency to load the icons but I wait long time and nothing. And I use the classic version of Firefox 64bits.
I test it and it is working here on Firefox 58.
Do you use some variations of Firefox like Waterfox, Pale Moon, ...?
Worthy replacement of Add to Search Bar, functionality of course impresses!!! Category Must Have!