您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds Anki Connect functionality to the Zhongwen browser extension
A userscript that adds Anki integration to the Zhongwen browser extension (Firefox, Chrome).
Warning: Only tested under {OS: Linux, Browser: Firefox, Userscript-Extension: Tampermonkey}. Uses GM_xmlhttpRequest
, which might not be supported by your userscript extension.
Feel free to edit and redistribute this script as you please.
Requirements:
The Anki addon Anki Connect. I also would recommend using the addon Chinese Support Redux to fill out the remaining fields.
Setup (Important!):
At the top of the script, there are three const
variables with which you have to set the name of the Anki deck, the card type and the field in that card type where to fill in the current word. See the comments above each const
for more info.\
At the moment, this script only supports filling in the word into a single field, all other fields are left empty.
How to use:
When the Zhongwen pop-up dialogue is visible, press the q
key on the keyboard. If no card for the currently highlighted word exists, a corresponding card is added. The Anki card browser then pops up (in either case), so you can fill out the remaining fields, or highlight the card for review or whatever else you want to do.
Options:
You can change the key and whether the browser should pop up. See the OPTIONS
section in the script for details.