[Japanese] Memrise Kana Detection

Warns you to answer in either Hiragana or Katakana when answering kana-based tests

As of 2017-07-25 17:16:11 UTC. See the latest version.

Author
Kai Krause
Ratings
0 0 0
Version
0.2.3
Created
2014-07-19
Updated
2017-07-25
License
N/A
Applies to
The code isn't necessarily eloquent, although doesn't seem to have any bugs to my understanding nor any performance issues.

Problem:
1. When answering Japanese-based tests on Memrise.com, you may realize that in doing so you forget to change your IME from Hiragana to Katakana or vice versa.
2. Not all courses will tell you to type in either "Hiragana" or "Katakana", and may instead just say something as ambiguous as "type in Kana" or "type in Japanese".

Solution:
This script will detect whether the required answer should be a) Hiragana, b) Katakana, c) both.
If you type in the wrong format, a red colored error will display below the answer field and you will be unable to press the "enter" key until you enter the correct format.

Notes:
This script will NOT tell you the answer or if you're correct (that's Memrise's job!) - it will only tell you the correct format.
This script will not affect any course that doesn't utilize Hiragana or Katakana character codes.