Is there a way to automatically show the correct answer when you get it wrong? Always having to press the icon is really cumbersome and the shortcut only works when I click into the window first after each item.
The current version should accept the F1 key at any time for opening the help, even without clicking in the window. Is that not working for you? (And if not, what browser and script host are you using?)
Iâll look into adding an option tonight to auto-open the help.
hmm⊠Iâm capturing keys all the way up at the <body> tag, so theoretically any key should be captured at all times. Iâll try out Firefox tonight.
In agreement with Powerpuncher on this one. Although for whatever reason, Iâm also using Firefox w/ Tampermonkey and F1 does indeed work for me. Still, I know that personally, if I get an answer wrong I will always want the correct answer shown. There should definitely be an option to auto show it.
Iâm so happy with this script, @rfindley, thank you so much. My requirements have been fulfilled better than I could ever hope. Now I have just one thing on my wish list: the ability to export/import preferences/items. For multiple machines. I donât need âexport to file,â a simple (json) string would already be enough for me.
The Open Framework technically has the ability for someone to create a Sync script to sync settings for all scripts. But in the meantime, you can gather the settings from the Javascript console.
Thereâs definitely something wrong with the synonyms. Iâm doing a quiz now for an item and it doesnât have synonyms that I added months ago.
I have a suggestion. At the end of a quiz, you allow a requiz of just the wrong items. But the wrong items donât stay from one round to the next. I would like to be able to go through multiple rounds of all items, and then drill the items I got wrong in any round, not just the last round.
Also, not sure why there is one remaining when the quiz is finished.
@Powerpuncher,
Since my key handler is attached to the <body> tag, which is the topmost element of the page hierarchy, all key events should bubble up to the <body> and be captured, no matter what has focus, and indeed that seems to be working for everyone else. So, there has to be something different about your system somehow.
We can run some tests to narrow down whatâs going on, depending on your level of comfort with digging into code.
On line 1600 of the latest version of the script, youâll find the key handler function:
function quiz_key_handler(e) {
Right after that, add a logging line, which will tell me if itâs reaching the key handler and doing something wrong, or if itâs just not reaching the handler at all:
function quiz_key_handler(e) {
console.log('quiz_key_handler()');
Save the changes and reload the page. Then, open the Javascript console (press F12 and click the Console tab) and start doing the quiz. It should print âquiz_key_handler()â each time you press a key, including while you are having your issue. Tell me what you discover, and that will cut the range of possible causes in half.
What Iâve found is that after hitting enter to submit, no input is captured at all. Only after I click back into the window it captures input again.
It only seems to happen when I submit the answer.
I also noticed, that when I input something in the answer field, for every character I type, the function is called twice and for hot keys just once.
I just trying actually doing the requiz and was disappointed to find out that it only requizzed the failed items once. Wouldnât it be better to do that on a loop (until the user ends it) to really drill the failed items?
To add to this topic, I actually have been experiencing a very similar âissueâ. Whenever I hit enter when the question is wrong, this happens to me. I have to click back in the window to regain keyboard input. However, if the answer is correct, itâs business as usual. I laughed when I saw this comment, because I had been telling myself to mention it for probably a week or so but kept forgetting lol. (Firefox, MacOS ElCap)