Skip to content

JAPONIUM/mouse-dictionary

 
 

Repository files navigation

Build Status Code Climate codecov

Mouse Dictionary: Super Fast Dictionary

Mouse Dictionary is a super fast dictionary for Chrome and Firefox.

Features:

  • Blazing fast
  • Detect phrases in text intelligently
  • You can import your own text data
  • Divide special expression into individual words and look them up at once(e.g. camelCase, snake_case)
  • Customizable

Download it.

Use it:

Screenshots

English-Japanese

ss02.gif

Japanese-English

ss03.gif

German

Want to use for the German language? Take a look these great articles!

How to develop

Use npm 6+.

Preparation:

npm install

For Chrome:

npm run build-chrome

For Firefox:

npm run build-firefox

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

Images

bookmark icon, gear icon

See also

Chrome 拡張の高速な英語辞書ツールをつくりました(a Japanese tutorial)

About

A blazing fast dictionary for Chrome/Firefox

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.9%
  • HTML 1.5%
  • CSS 0.6%