I think there is a script that does exactly this: [Userscript] WaniKani Similar Kanji
EDIT: Glancing over that thread that specific script may not be working but there are some alternatives linked in the discussion.
I think there is a script that does exactly this: [Userscript] WaniKani Similar Kanji
EDIT: Glancing over that thread that specific script may not be working but there are some alternatives linked in the discussion.