JavaScript snippet to shuffle radicals and kanji on the dashboard

Context

I find it useful to quiz myself on the meanings and readings of kanji early on in a level using the dashboard. Shuffling the radicals and kanji prior to doing so prevents you from remembering them based on their position alone.

Usage

Open the web inspector and paste the following into the console:

document.querySelectorAll('.level-progress-dashboard__item').forEach((el) => {
  el.style.order = Math.floor(1000000 * Math.random())
})

If you want to hide locked kanji (optional):

document.querySelectorAll('.subject-character--locked').forEach((el) => {
  el.parentNode.parentNode.remove()
})

Before

After

6 Likes