Code Monkey home page Code Monkey logo

wordbook-bob-plugin's Introduction

wordbook-bob-plugin

这是一个 Bob 的翻译插件,但是该插件不对输入的文本进行翻译,听起来不可思议,但的确如此,该插件主要是将输入的英文单词通过接口的方式同步到 有道词典欧路词典 的单词本中,以方便对查询过的单词进行集中复习。

特性

1、有道词典 仅实现了通过 cookie 的方式添加单词到单词本;无法使用账号登录,因为 Bob 提供的 API 无法获取到请求返回的 cookie

2、欧路词典 是通过开放 api 添加到指导单词本,但是需要指定单词本的 id,可以通过 api 获取单词本 id。

3、扇贝单词 是通过 api 添加到指导单词本,需要登录后从网页获取 auth_token

设置

有道词典获取 cookie

1、登录有道词典

2、如下图操作:

3、在控制台执行 document.cookie 获取到 cookie

欧路词典获取 token

1、登录欧路词典

2、在右上角「账户管理」获取授权

3、获取单词本ID

扇贝单词获取 token

  1. 登录扇贝
  2. 在浏览器中按F12
  3. 随便点击一下一面,查看Header中的auth_token

效果

wordbook-bob-plugin's People

Contributors

yuhaowin avatar kevinxiong avatar

Watchers

 avatar

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.