Jisho2Anki

Capture Jisho data and send to Anki via AnkiConnect

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
tontyoutoure
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0.1
创建于
2025-12-10
更新于
2025-12-12
大小
32.5 KB
许可证
MIT
适用于

Jisho2Anki User Guide

Disclaimer: This script and this documentation are generated by Gemini, with human verification.

Jisho2Anki is a powerful Userscript designed to streamline the vocabulary mining process for Japanese learners. It enables one-click importing of words from Jisho.org directly into Anki via AnkiConnect, featuring highly customizable field mapping to capture expressions, readings, meanings, and sentence examples automatically.


1. Prerequisites

Before using the script, ensure your environment is set up correctly:

  1. Anki Desktop: Ensure the Anki desktop application is installed and running.
  2. AnkiConnect Add-on: This is required for the script to communicate with Anki.
    • Open Anki and navigate to Tools -> Add-ons -> Get Add-ons....
    • Enter the code: 2055492159.
    • Important: Restart Anki after installation. Anki must be running in the background for the script to work.
  3. Userscript Manager: Install a browser extension such as Tampermonkey or Violentmonkey.

2. Configuration

You only need to configure the script once to tell it where to send your cards and how to format them.

  1. Open Jisho.org and search for any word.
  2. Locate the new icons (an Upload Arrow and a Settings Gear) next to the vocabulary entry.

alt text

  1. Click the Gear Icon to open the configuration panel.

alt text

Settings Overview

  • AnkiConnect URL: Default is http://127.0.0.1:8765. If the status shows a green Connected!, no changes are needed.
  • Target Deck: Select the Anki deck where you want new cards to be created.
  • Note Type (Model): Select the Note Type you use for vocabulary (e.g., "Core 2k/6k", "Japanese Basic").
  • Tags: Define tags to be automatically added to new cards (space-separated). Default is jisho.org.

Field Mapping (Core Feature)

This section allows you to map Jisho data to your specific Anki Note Type fields.

  • Mapping Data: Use the dropdown menus to select which Jisho data corresponds to which Anki field (e.g., map Jisho's reading to Anki's Kana field).
  • Multi-Source Fields: If you want to combine multiple pieces of data into a single Anki field (e.g., putting both "Meanings" and "Notes" into one field), click the + button next to the dropdown.
    • This adds a second slot for that field.
    • Data from multiple sources will be joined by a new line in the final card.
  • Ignoring Fields: If a field should remain empty, select -- Ignore --.

Click Save & Close to apply your changes.


3. Usage

Once configured, adding words is seamless.

  1. Search for a word on Jisho.org.
  2. Click the Upload Icon (the Up Arrow) located next to the gear icon.

alt text

Status Indicators

  • Loading: The icon changes to a spinner while data is being processed.
  • ✅ Success: The icon turns into a green checkmark. The note has been created in Anki. (The script automatically prevents duplicates within the selected deck).
  • ❌ Error: The icon turns into a red X. Please check if Anki is running and if your configuration is correct.

4. Available Data Sources

The script extracts the following data points for mapping:

  • Expression: The word as written (Kanji/Kana).
  • Reading: The full reading in Kana (Furigana and Okurigana are merged correctly).
  • Meanings: A formatted block containing parts of speech, English definitions, and example sentences.
  • Other forms: Alternative spellings or kanji variations.
  • Notes: Specific usage notes, tags (e.g., "archaic"), or nuances provided by Jisho.

5. Troubleshooting

  • "Connection Failed" Status:

    • Ensure Anki is running.
    • Ensure the AnkiConnect add-on is installed.
    • Check if your firewall is blocking port 8765.
  • Fields are empty in Anki:

    • Re-open the configuration (Gear icon) and check the Field Mapping section. Ensure you have selected a valid source for every Anki field you wish to populate.
  • Do I need to refresh after saving settings?

    • No, changes are applied immediately after clicking "Save & Close".