https://foosoft.net/projects/yomichan/ this is the website for yomichan just in case you don't already have it. follow the instructions on the website to get set up
making 1-click anki cards with yomichan requires this add-on https://ankiweb.net/shared/info/2055492159 (ankiconnect)
there's 2 primary methods for watching anime with jp subs you've downloaded
- streaming and using ASB player. https://github.com/killergerbah/asbplayer. for streaming the content, there are legal options like crunchyroll. most will recommend aniwatch.to and i will too, as long as youre okay with the illegitimacy.
- local video using MPV, clipboard inserter and a texthooker this is the more complicated route, here's an old video explaing how to do it https://www.youtube.com/watch?v=bbg6ztWecbU&t=436s
i recommend option 1 for most use cases.