Note: I have no intention to receive any donations, but you could at least give me some feedback/appreciation! =). I can be contacted at mailto:email@example.com?subject=csx:%20
. Middle-click the link instead of left-clicking it.
This was based on Ben Basson's Context Search add-on at https://addons.mozilla.org/en-US/firefox/addon/context-search/
. However, from version 0.4.6.3, the code was largely rewritten to suit my additional modifications.
Tip: To create custom search engines, you can use the Add to Search Bar add-on or use the forms at http://www.searchplugins.net/generate.aspx
1. The list of search engines is displayed in the context menu for searching selected text.
2. By default, most of the engines will be displayed in the submenu 'Search for "..."'.
3. Separators can be used to group engines.
1. Configuration GUI overlaid onto the "Manage Search Engines..." dialog to modify preferences (0.4.6.3+)
2. Specified items outside submenu (0.4.6+) or hidden (0.4.6.2+)
(default: Google, Wikipedia and The Free Dictionary are placed outside submenu)
3. Ability to change action of different mouse buttons and keyboard access-key activation (0.4.6.3+)
(default: current tab - right-click, new tab with foreground/background toggled (tab shift) - middle-click)
4. Site Search (additional item in submenu): Searches for selected text in current site using Google (0.4.6.2) or a specified engine (0.4.6.3+)
5. Menu item itself acts like the default context-menu item (default), or submits to a user-specified engine (0.4.6.2+)
6. Ability to edit labels of items outside submenu (0.4.6+) and items in submenu (0.4.6.3+)
7. Shortcut to configuration GUI from the submenu (0.4.6.3+)
8. Context menu can be pinned (i.e. kept open) for searches in background tabs, so that multiple searches can be executed at once, and can be toggled temporarily by pressing the space-bar in the context menu (0.4.6.4+) -- thanks to feedback from KJH23SJH99
9. Maximum selection length for submission to search engine can be modified (0.4.6.5+)
10. Holding the mouse button down until outline of menu item blinks will toggle enclosing selection in quotes (0.4.6.6+)
11. Hidden preference (about:config necessary) extensions.contextsearchx.showIcons allow icons to be shown in the top level context menu (0.4.6.6+) -- thanks to feedback from Точки над Ё
12. "Search for ..." menu item will now have the icon of the default engine (0.4.6.10+) -- thanks to feedback from Renato Silva and Eduard Braun
13. If there is no selection, the word under the cursor will be used instead (0.4.6.10+) -- thanks to feedback from Renato Silva
14. If all the engines in the submenu are hidden, the "Manage Search Engines..." will be placed outside the submenu and the submenu will be hidden (0.4.6.10+) -- thanks to feedback from Solotak
----- (see https://addons.mozilla.org/en-US/firefox/addon/context-search-x/versions/
15. The hidden preference showIcons is now in the GUI (0.4.6.14+)
16. The new preferences of disableSubmenu, enableDefaultEngine, separatorBefore and separatorAfter allow minor tweaks of the context search menu (0.4.6.14+)
17. One can now enable clipboard use by turning on useClipboard, and holding shift while bringing up the context menu -- it is intentionally made unlikely to be accidentally triggered because of possible privacy issues (0.4.6.14+)
2. Deutsch -- by Boris Cornet (0.4.6.5+)
(The language with the second highest number of users is Deutsch. Others can help too!)
My old version (not available anymore) was done with the help of:
3. Русский -- by Точки над Ё (0.4.6.6+)
4. Português do Brasil -- by Renato Silva (0.4.6.11+)
x. Depending on user requests, default buttons may be modified to align with Firefox's behavior for normal links, with a minor edit to allow shift-key to toggle tab focusing (please give some feedback on this)
x. The pin-popup feature can technically work with opening tabs in foreground, but might be irritating if you have the feature permanently enabled, and you have gotten used to the old behaviour
Hidden Preferences "extensions.contextsearchx.*":
(all modifiable with GUI in version 0.4.6.3+)
1. menuItems: (0.4.6+, new format in version 0.4.6.3+, but converts from previous version)
separated by comma. A sample menuItems preference is made default (Google, Wikipedia, The Free Dictionary would be brought outside the menu, and a separator is made before Amazon.com
Google:$S:G,Wikipedia (en):Wikipedia:w,The Free Dictionary:$S:d,|Amazon.com
: Engine name with optional "|" in front to add a separator before item.
: The label to be used, with ">" in front to leave it in submenu. "$S" is replaced by the engine name. To hide the engine, enter a single ">". Leave it blank (same as ">$S") to keep it in submenu (default).
: The key to press on the keyboard to trigger the command when the menu/submenu is open.
2. hideStandardContextItem, quoteStringsWithSpaces (0.4.6+)
3. defaultEngine, siteSearchEngine, currentTabButton, tabShiftButton, beforeSubmenu (0.4.6.3+)
4. showIcons (0.4.6.6+)
5. disableSubmenu, enableDefaultEngine, separatorBefore, separatorAfter (0.4.6.14+)
1. Incompatibility with original add-on (0.4.6)
2. Separators outside sub-menu kept increasing in number (0.4.6.2 and earlier)
3. Failed to close menu after clicking on the sub-menu item using the default engine. (0.4.6.2)
4. Site Search could not be modified like a search engine from GUI (0.4.6.3)
5. Selection extraction from input controls did not trim whitespace characters (0.4.6.3)
6. Fixed bug with further overlays to the engine manager dialog -- thanks to feedback from Coldumbo (0.4.6.3)
7. Preference window size did not automatically increase to accommodate new buttons as its size persisted from previous engine manager sessions (0.4.6.3-0.4.6.4) -- thanks to feedback from Semisonic
8. Unicode search engine labels in the context menu was not supported (0.4.6.5 and earlier) -- thanks to feedback from Точки над Ё
9. Site Search item was not localised with the chosen locale (0.4.6.5 and earlier) -- thanks to feedback from Точки над Ё
10. The "Manage Engines..." menu item did not work with the search bar manually removed from the toolbar (0.4.6.6 and earlier) -- thanks to feedback from cmlx
11. If pin-popup is turned on, and you enclosed the search with quotes on-the-fly, it will not get reset (0.4.6.8 and earlier)
12. If an extension made by Scriptify is installed and enabled, triggering a search tab in the background might open two tabs (0.4.6.3-0.4.6.11) -- thanks to feedback from Jeff Moriva
a. One of them will be locked and exiting Firefox is the only way to close it (in fact, opening two tabs very quickly in any way causes this locking problem with Scriptify)
b. This bug-fix might also solve other problems involving two tabs opening for every search (but not the one due to the pin-popup feature)
13. If pin-popup is turned on, left/right-clicking an engine, if set to open tabs in background, might open two searches (0.4.6.4-0.4.6.12) -- thanks to feedback from Ken Schuster
a. This bug-fix should finally solve all problems associated with two search results opening
14. If hideStandardContextItem was switched off, the item always appeared even when there is no selected text. (0.4.6-0.4.6.13)