Mouse Dictionary: Super Fast Dictionary
Mouse Dictionary is a super fast dictionary for Chrome and Firefox.
Features:
- Super fast (react in 1/60 second)
- Awesome phrases detection
- Capable of importing your own text data
- Available on PDF documents!
- Look up connected words at one
- camelCase -> "camel", "case"
- snake_case -> "snake", "case"
- splitinto -> "split into"
- Customizable view
- Available not only on very normal document:
- YouTube captions
- input elements
- textarea
- ...
Download it.
Use it:
Screenshots
English-Japanese
Japanese-English
German
Want to use for the German language? Take a look these great articles!
How to develop
Preparation
Use npm 6+.
npm installBuild
Debug build
For Chrome:
npm run build-chromeFor Firefox:
npm run build-firefoxRelease build
For Chrome:
npm run release-chromeFor Firefox:
npm run release-firefoxWatch
If you want to keep building every time after you edit source code, watch would be quite useful.
For Chrome:
npm run watch-chromeFor Firefox:
npm run watch-firefoxContribution
For the moment, Mouse Dictionary project doesn't have any strict rule about contribution. Feel free to create any issues and pull requests.
Some guides:
- Editor: the main developer uses VSCode
- Before you commit: try running
npm run testandnpm run lint
Cross-extension messaging
Mouse Dictionary supports receiving cross-extension messages. One example of an extension that implements sending message to this extension is Mouse Dictionary iframe support.
Here is a code example for sending a message to Mouse Dictionary. You can make Mouse Dictionary look up words/expressions from other extensions.
const MD_EXTENSION_ID = "dnclbikcihnpjohihfcmmldgkjnebgnj";
chrome.runtime.sendMessage(MD_EXTENSION_ID, {
type: "text",
text: "rained cats and dogs"
});Parameters:
| name | type | value |
|---|---|---|
| type | string | must be "text" |
| text | string | text you want to look up |
License
Mouse Dictionary is published under the MIT license.
Third-party data
This project includes some third-party data:
Dictionary data
ejdic-hand
- https://github.com/kujirahand/EJDict
- License: Public domain
Images
bookmark icon, gear icon
- https://www.iconfinder.com/iconsets/wpzoom-developer-icon-set
- License: Creative Commons (Attribution-Share Alike 3.0 Unported)
Build-in PDF viewer
A build-in PDF viewer based on PDF.js.
Great JavaScript libraries
See package.json
See also
Chrome 拡張�?�高速�?�英語辞書ツールを�?��??り�?��?��?�(a Japanese tutorial)


