Auto Add to Anki #2006
Unanswered
briana-brady
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In order to not break full immersion while reading in Japanese, I've found it really helpful to automatically add words that are looked up throughout a session to Anki.
To do this I wrote a script that adds event listeners to iframes when they are created. On hover over the iframe, the event listener checks the current entry's frequency against a frequency range and adds the word by clicking the a save note button. If it's not in my range, I change the background color of the add button. (Paired with turning off visibility of frequency tags, focusing on only comprehension becomes much easier like this.)
However, the script is quite jank; it's run through a bookmarklet and only works on the search page (with closed shadow doms for popups turned off). I really love the feature and wished that I could fork the project to inject it into the build so it could run on any page I use Yomitan with.
Pasting the bookmarklet I use below, would devs familiar with the codebase know if or where the
mouseoverevent listener could be added? My eyes gloss over when I try to find where to start.Beta Was this translation helpful? Give feedback.
All reactions