Jisho.org #sentence highlight searched word

Highlight the search terms in the sentence results

ავტორი
Garbaz
დღიური ინსტალაციები
0
მთლიანი ინსტალაციები
17
რეიტინგი
0 0 0
ვერსია
1.2
შექმნილია
06.10.2020
განახლებულია
18.10.2020
ლიცენზია
პ/გ
გამოყენებს მათ

When searching for sentences on Jisho.org (using the "#sentence[s]" tag), this scripts highlights the searched word(s) in the results.

Stuff that works:

  • Searches both the Japanese and the English sentence
  • Searches Kanji, Furigana and Hiragana (though separately)
  • Only matches full words in the English sentence

Stuff that doesn't work (yet):

  • Highlighting conjugations if they don't contain the search term exactly (e.g. 「行った」isn't highlighted when searching for 「行く」). I can't think of a simple way to do this, so this likely will never get implemented by me.
  • Highlighting across Kanji/Furigana - Hiragana boundaries (e.g.「食べる」isn't highlighted when searching for 「たべる」). This likely could be implemented with not too much effort.
  • Probably other stuff that I didn't notice while testing. The script is quite rudimentary, I'm no JS developer.