
Context Search 作者: Olivier de Broqueville, Carl Scheller
Search selected text using your preferred search engines. Right-click or Alt-click on selected text to respectively launch the context menu or the icons grid. You can also perform searches using keywords in the url address bar. Requires Firefox 62+.
扩展元数据






Firefox add-on to search selected text in a web page using your favorite search engines.
How does it work
The search results will appear as defined in the extension's preferences page.
The extension includes an Image analysis tool. To analyse an image, right-click on the image and select: "Image analysis...". If present, the EXIF tags will appear in the sidebar along with a color histogram and color palette. A map will also show where the image was taken and in which direction if the GPS data is available.
Managing search engines
To manage your favorite search engines, you can go to the preferences page of Context Search. You can reach this page by opening the extensions page (Addon Manager) where all your add-ons are listed and then clicking on the "Preferences" button.
The 'Reset' button will re-load the default list of search engines and their associated favicons.
You can also import a JSON file containing your own list of search engines. It is strongly recommended to export your customized list of search engines as a backup in case anything goes wrong.
How to add a search engine to your custom list
* visit mycroftproject.com and right-click on the main link of a listed search engine
* use the page action (i.e. Context Search icon in the address bar) to add a search engine if the website supports open search
* add a search engine manually via the Options page (you can test the query string before adding the search engine)
How to perform a search in the omnibox
In the omnibox (or url address bar), type 'cs ' (without the quotes, and where cs stands for Context Search) followed by the keyword you have chosen for your seaarch engine in the extension's preferences, e.g. 'w ' (again without quotes) for Wikipedia, followed by your search term(s). The dot ('.') and the exclamation mark ('!') are reserved keywords.
Here are some examples:
cs w atom
will search for the word 'atom' in Wikipedia.
cs .
will open the Options page
cs ! cold fusion
will perform a multi-search for the search terms 'cold fusion'
The main structure of a JSON file containing the search engines
```
{
"id": {
"index": 0,
"name": "search engine's name",
"keyword": "keyword to be used in an omnibox search",
"multitab": "takes the value true or false depending on whether this search engine should be included in a multi-search or not",
"url": "search engine query string (without the search terms)",
"show": "takes the value true if the search engine is to be shown in the context menu or false if not",
"base64": "a base 64 string representation of the search engine's favicon"
}
}
```
Here is an example of a JSON file containing 3 search engines:
```
{
"bing": {
"index": 0,
"name": "Bing",
"keyword": "b",
"multitab": false,
"url": "https://www.bing.com/search?q=",
"show": true,
"base64": ""
},
"google": {
"index": 1,
"name": "Google",
"keyword": "g",
"multitab": false,
"url": "https://www.google.com/search?q=",
"show": true,
"base64": ""
},
"yahoo": {
"index": 2,
"name": "Yahoo!",
"keyword": "y",
"multitab": false,
"url": "https://search.yahoo.com/search?p=",
"show": true,
"base64": ""
}
}
```
It is not required to provide the base 64 string representation of any search engine's favicon. This string will automatically be loaded for you.
The Firefox add-on may be found here:
https://addons.mozilla.org/firefox/addon/contextual-search/
Special thanks to the following contributors for the translations
Code made by others used in this extension
How does it work
- Select some text on a webpage
- Right click (or Alt-click) on a selection
- A context menu (or a grid of icons) appears, displaying the list of search engines chosen in the extension's preferences
- Click on the search engine with which you’d like to search for the selected text
The search results will appear as defined in the extension's preferences page.
The extension includes an Image analysis tool. To analyse an image, right-click on the image and select: "Image analysis...". If present, the EXIF tags will appear in the sidebar along with a color histogram and color palette. A map will also show where the image was taken and in which direction if the GPS data is available.
Managing search engines
To manage your favorite search engines, you can go to the preferences page of Context Search. You can reach this page by opening the extensions page (Addon Manager) where all your add-ons are listed and then clicking on the "Preferences" button.
- The checkbox at the start of a line determines whether the search engine should appear in the context menu.
- The next item on the line contains the name of the search engine and is followed by a keyword.
- This keyword is used in the url address bar (or omnibox) after the word “cs “ and before the search terms (e.g. to search for linux using the search engine Wikipedia, you would type: ‘cs w linux’, where w is the keyword assigned to Wikipedia).
- The second checkbox specifies whether you’d like to use the search engine in a “multi-search”. A “multi-search” is a search performed using multiple search engines and can be selected in the context menu.
- The checkbox is followed by the search query string. This is the generic url you would use to perform a search. Search query strings may contain the parameters %s or {searchTerms} where you'd like your search terms to appear, i.e. the selected text.
- Click on and drag the move icon to the left of the trash icon to move each search engine up or down in the list.
- Click on the trash icon to remove a search engine from the list.
The 'Reset' button will re-load the default list of search engines and their associated favicons.
You can also import a JSON file containing your own list of search engines. It is strongly recommended to export your customized list of search engines as a backup in case anything goes wrong.
How to add a search engine to your custom list
* visit mycroftproject.com and right-click on the main link of a listed search engine
* use the page action (i.e. Context Search icon in the address bar) to add a search engine if the website supports open search
* add a search engine manually via the Options page (you can test the query string before adding the search engine)
How to perform a search in the omnibox
In the omnibox (or url address bar), type 'cs ' (without the quotes, and where cs stands for Context Search) followed by the keyword you have chosen for your seaarch engine in the extension's preferences, e.g. 'w ' (again without quotes) for Wikipedia, followed by your search term(s). The dot ('.') and the exclamation mark ('!') are reserved keywords.
Here are some examples:
cs w atom
will search for the word 'atom' in Wikipedia.
cs .
will open the Options page
cs ! cold fusion
will perform a multi-search for the search terms 'cold fusion'
The main structure of a JSON file containing the search engines
```
{
"id": {
"index": 0,
"name": "search engine's name",
"keyword": "keyword to be used in an omnibox search",
"multitab": "takes the value true or false depending on whether this search engine should be included in a multi-search or not",
"url": "search engine query string (without the search terms)",
"show": "takes the value true if the search engine is to be shown in the context menu or false if not",
"base64": "a base 64 string representation of the search engine's favicon"
}
}
```
Here is an example of a JSON file containing 3 search engines:
```
{
"bing": {
"index": 0,
"name": "Bing",
"keyword": "b",
"multitab": false,
"url": "https://www.bing.com/search?q=",
"show": true,
"base64": ""
},
"google": {
"index": 1,
"name": "Google",
"keyword": "g",
"multitab": false,
"url": "https://www.google.com/search?q=",
"show": true,
"base64": ""
},
"yahoo": {
"index": 2,
"name": "Yahoo!",
"keyword": "y",
"multitab": false,
"url": "https://search.yahoo.com/search?p=",
"show": true,
"base64": ""
}
}
```
It is not required to provide the base 64 string representation of any search engine's favicon. This string will automatically be loaded for you.
The Firefox add-on may be found here:
https://addons.mozilla.org/firefox/addon/contextual-search/
Special thanks to the following contributors for the translations
- Geoffrey De Belie for the Dutch translation
- Krzysztof Galazka for the Polish translation
- Sergio Tombesi for the Italian and Spanish translations
- Fushan Wen for the Chinese translation
Code made by others used in this extension
- exif.js v2.3.0 originally by Jacob Seidelin and modified by Bart van der Wal which can be found on Github: https://github.com/exif-js/exif-js/blob/v2.3.0/exif.js
- 2 libraries from RGraph v5.26 by Richard Heyes: Rgraph.svg.common.core.js which may be found here: https://www.rgraph.net/libraries/src/RGraph.svg.common.core.js and RGraph.svg.line.js which may be found here: https://www.rgraph.net/libraries/src/RGraph.svg.line.js
- SortableJS v1.10.2 minified with many contributors, which can be found on GitHub here: https://github.com/SortableJS/sortablejs/releases/tag/1.10.2
- Leaflet v1.7.1 minified downloaded from http://cdn.leafletjs.com/leaflet/v1.7.1/leaflet.zip
- Color Thief v2.3.2 minified available from https://github.com/lokesh/color-thief/releases/tag/v2.3.2
The add-on has been created using web extensions, with Firefox 57+ in mind. It's only been tested on Mac so please let me know if you experience issues on other platforms.
举报此附加组件的滥用行为
如果您认为此附加组件违背了 Mozilla 附加组件政策 或存在安全或隐私问题,请使用此表单向 Mozilla 报告问题。
请勿使用此表单报告附加组件的缺陷或请求功能。此表单将发给 Mozilla 官方,而非附加组件的开发者。
此扩展的开发者寻求您的小小捐助以支持其持续发展。
- 附加组件链接
- 版本
- 4.1.6
- 大小
- 777.19 KB
- 上次更新
- 5 个月前 (2020年11月25日)
- 许可协议
- GNU 通用公共授权,版本 3.0
- 隐私政策
- 阅读此附加组件的隐私政策
- 版本历史
- 目前尚无评分
- 目前尚无评分
- 目前尚无评分
- 目前尚无评分
- 目前尚无评分
- 目前尚无评分