• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

wtetsu/mouse-dictionary:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

wtetsu/mouse-dictionary

开源软件地址:

https://github.com/wtetsu/mouse-dictionary

开源编程语言:

TypeScript 53.8%

开源软件介绍:

Test Code Climate codecov

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 nicely (e.g. camelCase -> camel case)
  • Customizable view

Available for various documents:

Install

See also Getting started

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

Preparation

Use Node.js 16+.

npm install

Build

For Chrome:

npm run build-chrome   # Debug build
npm run release-chrome # Release build

For Firefox:

npm run build-firefox   # Debug build
npm run release-firefox # Release build

For Safari:

npm run build-safari   # Debug build
npm run release-safari # Release build

see package.json for other commands.

Contribution

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 test and npm run lint

Cross-extension messaging

Mouse Dictionary supports receiving cross-extension messages. Mouse Dictionary iframe support is a good example that implements message sending to this extension.

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

Images

Built-in PDF viewer

Great JavaScript libraries

See also

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap