{"id":13495246,"url":"https://github.com/yuhaowin/wordbook-bob-plugin","last_synced_at":"2025-03-28T16:32:01.440Z","repository":{"id":40241478,"uuid":"326214167","full_name":"yuhaowin/wordbook-bob-plugin","owner":"yuhaowin","description":"通过 Bob 查询的单词添加至 「有道词典」 、 「欧路词典」、「扇贝单词」 的单词本。","archived":false,"fork":false,"pushed_at":"2023-09-24T02:37:48.000Z","size":1776,"stargazers_count":100,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-01T19:54:29.164Z","etag":null,"topics":["bobplugin"],"latest_commit_sha":null,"homepage":"https://github.com/yuhaowin/wordbook-bob-plugin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuhaowin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-01-02T15:41:45.000Z","updated_at":"2024-07-28T09:15:27.000Z","dependencies_parsed_at":"2024-01-16T09:02:07.507Z","dependency_job_id":"feb1e83f-a0fb-4fd2-80a4-313d286d0479","html_url":"https://github.com/yuhaowin/wordbook-bob-plugin","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhaowin%2Fwordbook-bob-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhaowin%2Fwordbook-bob-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhaowin%2Fwordbook-bob-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhaowin%2Fwordbook-bob-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuhaowin","download_url":"https://codeload.github.com/yuhaowin/wordbook-bob-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222395784,"owners_count":16977623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bobplugin"],"created_at":"2024-07-31T19:01:32.850Z","updated_at":"2025-03-28T16:32:01.422Z","avatar_url":"https://github.com/yuhaowin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# wordbook-bob-plugin\n\n这是一个 [Bob](https://github.com/ripperhe/Bob) 的翻译插件，但是该插件不对输入的文本进行翻译，听起来不可思议，但的确如。该插件主要是将输入的英文单词或短语通过接口的方式同步到 `有道词典` 、`欧路词典`\n的单词本中，以方便对查询过的单词进行集中复习。\n\n## 特性\n\n1、`有道词典` 仅实现了通过 cookie 的方式添加单词到单词本；无法使用账号登录，[因为 Bob 提供的 API 无法获取到请求返回的\ncookie](https://github.com/ripperhe/Bob/issues/115)。\n\n2、`欧路词典` 是通过开放 api 添加到指导单词本，但是需要指定单词本的 id，可以通过 api 获取单词本 id。\n\n3、`扇贝单词` 是通过 api 添加到指导单词本，需要登录后从网页获取 auth_token\n## 设置\n\n![](imgs/1.png)\n\n## 有道词典获取 cookie\n\n1、[登录有道词典](https://dict.youdao.com/)\n\n2、如下图操作：\n\n![](imgs/2.png)\n\n3、在控制台执行 `document.cookie` 获取到 cookie\n\n## 欧路词典获取 token\n\n1、[登录欧路词典](https://dict.eudic.net/)\n\n2、在右上角「账户管理」获取授权\n\n![](imgs/3.png)\n\n3、获取单词本 id\n\u003e 如果不知道单词本 id，可以先不填写单词本 id, 输入任意单词查询后，会返回所有的单词本 id，选择其中你需要的 id 填入即可。\n\n![](imgs/4.png)\n\n## 扇贝单词获取 auth_token\n1、[登录扇贝](https://www.shanbay.com/)\n\n3、随便点击一个页面，获取 cookie 中的 auth_token，确保 auth_token 正确\n\n![](imgs/6.png)\n## 效果\n\n![](imgs/5.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhaowin%2Fwordbook-bob-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuhaowin%2Fwordbook-bob-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhaowin%2Fwordbook-bob-plugin/lists"}