xxhk.org

学习骇客

Highlight to Anki for Chrome Extension

2024 / 10 / 6

使用方法:
先进行首次配置,然后就可以方便地使用了,支持划线笔记、批注笔记、问答笔记三种形式。

Usage Instructions:
First, complete the initial configuration, and then you can easily use it. It supports three types of notes: highlighted notes, annotation notes, and Q&A notes.

按住 Alt 键的同时,用鼠标选中内容,即可标记为高亮效果,并发送到 Anki,将得到包含摘录的划线笔记。
Hold down the Alt key while selecting content with the mouse to highlight it and send it to Anki. This will create a highlighted note containing an excerpt.

按住 Alt+Ctrl 键的同时,用鼠标选中内容,即可在标记为高亮的同时输入内容,并发送到 Anki。
Hold down the Alt+Ctrl keys while selecting content with the mouse to highlight it, enter additional content, and send it to Anki.

以“注:”或“N:”开头输入一句话或一段话,将得到包含摘录的批注笔记。
Start a sentence or paragraph with “注:” or “N:” to create an annotation note containing an excerpt.

注:……
N: ……

以上下两段相邻的“问:”“答:”或“Q:”“A:”开头输入问题和答案,将得到包含摘录的问答笔记。
Enter questions and answers using adjacent "Q:" and "A:" (or “问:” and “答:”) to create a Q&A note with an excerpt.

问:…… 答:……
Q: …… A: ……

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

Initial Configuration:
Install and enable the Anki-Connect plugin. Please keep the default settings unchanged.

在上方的设置中确认目标牌组名称,并在 Anki 里创建该牌组。
Confirm the target deck name in the settings above, and create this deck in Anki.

下载并导入配套的模板 到 Anki,确保模板名和字段名未被修改。
Download and import the corresponding template into Anki. Ensure that neither the template name nor the field names are modified.

打开 Anki 软件并保持运行,如遇 Mac 新系统冻结后台软件导致无法使用,请搜索“App Nap”了解如何解除休眠功能。
Open the Anki software and keep it running. If you encounter issues with Mac's new system freezing background applications, search for "App Nap" to learn how to disable the sleep function.

如遇快捷键无效的情况,请刷新网页后再次尝试,或者卸载后重新安装扩展并重启浏览器。
If shortcut keys do not work, refresh the webpage and try again, or uninstall and reinstall the extension, then restart the browser.

如果遇到摘录内容的格式错乱的情况,请通过当前页的邮箱向我反馈;但考虑到网页复杂多样且有些不标准甚至规则相互冲突,加之初学编程的技术有限,不一定能全部解决;建议以批注和问答为主,到 Anki 里就以自己记录的内容为主,引用和跳转原文功能仅在需要回顾时参考。
If you encounter formatting issues with the excerpts, please provide feedback via the email on the setting page. However, given the diversity and complexity of web pages—some being non-standard or conflicting with others—and my limited technical expertise as a beginner in programming, I may not be able to resolve all issues. I recommend focusing on annotation and Q&A notes in Anki, where you primarily rely on your own records. The citation and link-back features should only be used for review purposes.


其他细节:
选择的对象支持文字和图片,都可以转入 Anki 复习。

Other Details:
Selected content supports both text and images, and can be transferred to Anki for review.

某些网站设置了防盗链,会导致图片在站外无法查看。
Some websites have anti-hotlinking measures, which may prevent images from being viewed outside their platform.

某些网站可能限制了选中内容,或者在源码中打乱了内容,将导致摘录功能失效。
Some websites may restrict selecting content, or scramble content in the source code, causing the excerpt function to fail.

使用「」符号对包裹的文字会被提炼为 Anki 的标签,并设置高亮效果。
Text wrapped in 「」symbols will be extracted as Anki tags and highlighted.

使用『』符号对包裹的文字会被设置成类似于填空题的主动回忆效果。
Text wrapped in 『』symbols will be treated as cloze deletion for active recall, similar to fill-in-the-blank questions.

支持多项自定义,目标牌组、附带标签和符号对都可以在选项中进行修改。
Multiple customizations are supported. The target deck, accompanying tags, and symbol pairs can be modified in the options.

为了引导大家遵循相对最小化的笔记原则,以上字段都不支持另起一段,如果需要分段,请在一个段落里手动插入换行符
一次或两次。
To encourage adherence to minimal note-taking principles, the above fields do not support paragraph breaks. If you need to create a new paragraph, manually insert a line break <br> once or twice within the same paragraph.

为了降低配置的复杂性并减少出错,以及保持后续同类方案的一致性,本方案暂不支持自定义模板,请在导入配套模板后保持模板名和字段名不变。
To reduce configuration complexity and minimize errors, while maintaining consistency with future similar solutions, this method currently does not support custom templates. Please keep the template name and field names unchanged after importing the provided templates.

支持从 Anki 跳转回到笔记所属的上下文,即原始网页。
It supports jumping back to the context of the note in Anki, that is, the original webpage.

不打开 Anki 时,也可以作为网页高亮标注工具使用。
Even without opening Anki, it can be used as a webpage highlighting tool.