GithubHelp home page GithubHelp logo

g8up / youdaodict Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 7.0 3.67 MB

有道词典 Chrome 扩展,提供功能:指词、划词、朗读、单词本、查询记录、导出~

JavaScript 11.20% HTML 3.65% TypeScript 75.35% Less 9.81%
chromeextension chrome-extension

youdaodict's Introduction

youdaodict's People

Contributors

dependabot[bot] avatar g8up avatar getcrx avatar softor avatar zav8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

youdaodict's Issues

提供辅助记单词功能

结合现有的查询记录,为用户提供辅助记忆功能。
如,在首页定时弹出生词。

  • 导出单词卡片(图片)

  • 定时设定交互

  • 提醒交互:

    • Notification

    • Bullet

    • Icon LED

自动朗读:支持指定英音、美音

勾选popup页的自动朗读后,当面板弹出时,可触发朗读。
目前(2019.12.28)默认的时朗读英音
期望给用户提供一个配置选项,可指定朗读发音类型。

打印单词本

一直想将自己的单词本打印出来随身携带,提高生词的曝光率。
昨晚在闲鱼收购一个廉价热敏打印机,连夜调试一个 demo,打印效果如下:
打印单词本

后续继续将排版代码梳理封装,尽快 ship。
这样我的用户朋友们就能像我一样随心打印,随身携带,加速记单词了。

查询一次后,再次查询无效

我的浏览器版本

edge 118.0.2088.76

我的插件版本

3.3.6

问题描述

查询一次出结果后,再次输入点击查询,没有任何效果,需要退出重新进才可以

句摘

背景

鱼儿离不开水,单词离不开句子。所以有必要在记录单词的同时,把整个句子记录下来

记录内容

  • 句子文本
  • 页面链接

管理

  • 展示界面:链接可跳转
  • 句子中的关键单词可标记、笔记(待定)

z-index 问题

branch:shadowDom
在某些页面(如知乎)中会被页面内容遮盖。

同一个查询请求,出现两种结果,什么情况?

http://dict.youdao.com/fsearch?q=addresses&le=eng&client=deskdict&keyfrom=chrome.extension&xmlVersion=3.2&dogVersion=1.0&ue=utf8&doctype=xml&pos=-1&vendor=g8up&appVer=3.1.17.4208

结果一
<?xml version="1.0" encoding="UTF-8"?>
<yodaodict>
  <return-phrase>
    <![CDATA[addresses]]>
  </return-phrase>
  <lang>eng</lang>

  <dictcn-speach>
    <![CDATA[addresses&type=1]]>
  </dictcn-speach>
  <speech>
    <![CDATA[addresses&type=1]]>
  </speech>
  <uk-speech>
    <![CDATA[addresses&type=1]]>
  </uk-speech>
  <us-speech>
    <![CDATA[addresses&type=2]]>
  </us-speech>
  <custom-translation>
    <type>ec</type>
    <translation>
      <content>
        <![CDATA[n. [计] 地址(address的复数形式)]]>
      </content>
    </translation>
    <translation>
      <content>
        <![CDATA[v. 对…发表演说(address的第三人称单数形式)]]>
      </content>
    </translation>
  </custom-translation>
  <yodao-web-dict>
    <web-translation same="true">
      <key>
        <![CDATA[addresses]]>
      </key>
      <trans>
        <value>
          <![CDATA[地址]]>
        </value>
      </trans>
      <trans>
        <value>
          <![CDATA[收信人]]>
        </value>
      </trans>
      <trans>
        <value>
          <![CDATA[演讲]]>
        </value>
      </trans>
    </web-translation>
    <web-translation>
      <key>
        <![CDATA[Correct Addresses]]>
      </key>
      <trans>
        <value>
          <![CDATA[规范写法]]>
        </value>
      </trans>
    </web-translation>
    <web-translation>
      <key>
        <![CDATA[subnet addresses]]>
      </key>
      <trans>
        <value>
          <![CDATA[子网地址]]>
        </value>
      </trans>
    </web-translation>
  </yodao-web-dict>

  <sexp>0</sexp>

</yodaodict>
结果二(简版)
<?xml version="1.0" encoding="UTF-8"?>
<yodaodict>
  <return-phrase>
    <![CDATA[addresses]]>
  </return-phrase>
  <lang>eng</lang>
  <yodao-web-dict>
    <web-translation same="true">
      <key>
        <![CDATA[addresses]]>
      </key>
      <trans>
        <value>
          <![CDATA[地址]]>
        </value>
      </trans>
      <trans>
        <value>
          <![CDATA[收信人]]>
        </value>
      </trans>
      <trans>
        <value>
          <![CDATA[演讲]]>
        </value>
      </trans>
    </web-translation>
    <web-translation>
      <key>
        <![CDATA[Correct Addresses]]>
      </key>
      <trans>
        <value>
          <![CDATA[规范写法]]>
        </value>
      </trans>
    </web-translation>
    <web-translation>
      <key>
        <![CDATA[subnet addresses]]>
      </key>
      <trans>
        <value>
          <![CDATA[子网地址]]>
        </value>
      </trans>
    </web-translation>
  </yodao-web-dict>

  <sexp>0</sexp>

</yodaodict>

todo

  • 抽象请求方法
  • 升级打包规则
  • 更新视图渲染方法

#新功能建议#

应当类似adBlock一样增加一个启用或禁用列表。
目前用baidu搜索一下英语(比如代码报错)的时候会激活,造成困扰

单词本

  • 添加单词本时支持选择分类
  • 本地存储方式优化,可考虑 IndexedDB,并提供管理界面
  • 单词本托管服务,支持同步

添加单词本添加分类

描述

hi @g8up 感谢你在这个 chrome 中加入了 "加入单词本" 这个很棒的 feature,这个对我很有用。

但是,在使用的过程中,我发现这个 feature 可以做得更好一些,当前添加单词到单词本只是把单词添加到单词本,但是没有添加分类,不利于后面查看单词本,所以不知道是否可以添加一个 “添加单词分类” 的 feature,默认的 “分类” 是个可自定义的项目,可以自己修改默认添加到的 “分类”。

说明

分类是单词本的一个功能,可以将单词划分成组,在单词本中展示为这样:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.