Skip to content

Instantly share code, notes, and snippets.

View piazzatron's full-sized avatar

Michael Piazza piazzatron

View GitHub Profile
@piazzatron
piazzatron / wani.js
Last active September 29, 2025 16:20
Print Wani Vocab By Lesson Level
// INSTRUCTIONS
// 1) Ensure Anki is open + AnkiConnect is installed, and your origin (e.g. https://www.wanikani.com) is whitelisted.
// 2) (Optional) Set an ignore list in localStorage:
// localStorage.setItem('WK_IGNORE_LIST', JSON.stringify(['工事', '猫']));
// 3) Open WaniKani Advanced Lesson Picker, paste this in the console.
(async () => {
const ANKI_URL = 'http://127.0.0.1:8765';
const FIELD_NAME = 'Expression';
const IGNORE_LS_KEY = 'WK_IGNORE_LIST';
map <c-d> scrollPageDown
map <c-u> scrollPageUp
map <c-h> previousTab
map <c-l> nextTab