xxhk.org

学习骇客

English guidance for Youtube to Anki

2024 / 10 / 26

使用方法

先点击浏览器右上角的扩展的图标进行首次配置,然后就可以方便地使用了

在 YouTube 视频页面使用快捷键 Alt+S (或自定义快捷键)打开输入框

在弹出的输入框中输入笔记,或者留空

使用快捷键 Ctrl+Enter 或点击"Add to Anki"按钮将内容保存到 Anki 牌组中

一键将当前视频添加到 Watch later,或者从 Watch later 中移除

Usage

First, click the extension icon at the top right corner of the browser for the initial setup, and then you can easily use it.

On a YouTube video page, use the Alt+S shortcut (or customize your own shortcut) to open the input box.

Enter notes in the input box that appears, or leave it empty.

Use the Ctrl+Enter shortcut or click the "Add to Anki" button to save the content to your Anki deck.

Add button and shortcuts for Adding to Watch later and Remove from Watch later list.


首次配置

安装并启用 Anki-Connect 插件,请保持默认配置勿改动

在上方的设置中确认目标牌组名称,并在 Anki 里创建该牌组

下载并导入配套的模板 到 Anki,确保模板名和字段名未被修改

打开 Anki 软件并保持运行,如遇 Mac 新系统冻结后台软件导致无法使用,请搜索“App Nap”了解如何解除休眠功能

如遇快捷键无效的情况,请再设置一遍快捷键,并确保视频已经加载完毕,如有其他问题可尝试卸载后重新安装扩展并重启浏览器,如果无法解决请通过后面的联系方式向我反馈详细情况

Initial Setup

Install and enable the Anki-Connect plugin, and please do not modify the default settings.

Check the target deck name in the settings and create the corresponding deck in Anki.

Download and import the accompanying template into Anki, ensuring that the template and field names are not modified.

Open the Anki software and keep it running. If Mac users encounter an issue where background apps freeze, search "App Nap" to learn how to disable this sleep function.

If the shortcut key doesn't work, try setting it up again and ensure the video is fully loaded. If other issues occur, try reinstalling the extension and restarting your browser. If the problem persists, contact me for assistance using the contact info provided on the setting page.


基本功能

在 YouTube 视频页面记笔记,发送含时间戳的笔记的 Anki 进行复习

支持记四种笔记:

引用笔记:输入框留空,将直接保存视频

批注笔记:以"注:"或"N:"开头,记一句话或一段话的批注

注:……

问答笔记:以"问:"和"答:"(或"Q:"和"A:")开头,且两段上下相邻

问:…… 答:……

直接记录:如果觉得前缀麻烦,也可以直接记录想要的内容

……

支持通过「」『』符号对标记文本,前者可以提炼标签并高亮显示,后者可以设置填空,和目标牌组、附带标签一样都可以自定义

为了引导大家遵循相对最小化的笔记原则,以上字段都不支持另起一段,如果需要分段,请在一个段落里手动插入换行符 <br> 一次或两次

为了降低配置的复杂性并减少出错,以及保持后续同类方案的一致性,本方案暂不支持自定义模板,请在导入配套模板后保持模板名和字段名不变

虽然本扩展也适用于 Bilibili,但是和 Youtube 相比,Bili 受到官方的限制较多,目前发现的限制有:不能在电脑版 Anki 里播放笔记中的视频(需要用手机版 Anki);时间戳链接跳转到 Bili 的 App 后也不能从时间戳位置开始播放(在手机版 Anki 里可以);版权视频也不支持在平台以外的地方播放。总结:选择非版权视频,然后在电脑上记,再同步到手机上复习。

Basic Functions

Take notes on the YouTube video page, sending timestamped notes to Anki for review.

Supports four types of notes:

Quotation Notes: Leave the input box blank to directly save the video.

Annotation Notes: Start with "注:" or "N:" to annotate a sentence or a paragraph.

N: ……

Q&A Notes: Start with "问:" and "答:" (or "Q:" and "A:") and ensure the two sections are adjacent like below.

Q: …… A: ……

Direct Recording: If prefixes are cumbersome, you can directly record your desired content.

……

You can use 「」 or 『』 symbols to mark text. The former extracts tags and highlights them, while the latter sets cloze deletions. Both can be customized on the setting page, as well as target decks and attached tags.

Please note: Some copyrighted videos cannot be played outside the Youtube platform, so they cannot be played in Anki either.

To encourage a minimal note-taking approach, none of these fields support starting a new paragraph. If you need to separate paragraphs, manually insert a <br> line break once or twice within the same paragraph.

To simplify configuration, avoid errors, and maintain consistency with similar solutions, this tool does not currently support custom templates. Please keep the template and field names unchanged after importing the provided template.

Although this extension also works for Bilibili, compared to YouTube, Bilibili has more restrictions from the platform. Current known restrictions include: videos in notes can't be played on the Anki desktop version (you'll need Anki on mobile); timestamp links don't start playback from the timestamp in the Bilibili app (but work on Anki Mobile); and copyrighted videos can't be played outside of the platform. In summary: choose non-copyrighted videos, take notes on a computer, and sync to your phone for review.