Skip to content

dancing-elf/jpdb-wanikani-reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jpdb-wanikani-reference

Basic imlementation that allow to add refrences to wanikani kanji to jpdb review/voculabrary pages.

For onyomi readings katakana is used.

Click by kanji in "Wanikani" section open kanji page at wanikani.com.

Installation

Add jbpd_wanikani_reference.js to tampermonkey.

For developers

Sorry for such awfull code :( But it works and now it is more than enough for me.

For simplicity kanji data are hardcoded in the script. If you want to participate you may want to regenerate this data. To regenrate it you can do steps bellow.

  1. Get data from wanikani with curl (maybe check page_after_id)
curl "https://api.wanikani.com/v2/subjects?types=kanji" \
-H "Authorization: Bearer WANIKANI_TOKEN" > k1.json

curl "https://api.wanikani.com/v2/subjects?types=kanji&page_after_id=1439" \
-H "Authorization: Bearer WANIKANI_TOKEN" > k2.json

curl "https://api.wanikani.com/v2/subjects?types=kanji&page_after_id=2439" \
-H "Authorization: Bearer WANIKANI_TOKEN" > k3.json
  1. Generate json structure for using in script with prepare_kanji_map.js

About

Add to jpdb.io pages referenses to wanikani

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors