Last active
February 4, 2022 01:59
-
-
Save angeldeniz11235/faac00ac0f158c9b43d89f2c323d93f5 to your computer and use it in GitHub Desktop.
ViolentMonkey Chrome extension script to make selecting quiz answers faster - using the arrow keys and enter key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name quizsail.com | |
// @namespace Violentmonkey Scripts | |
// @match https://www.quizsail.com/quiz-engine.html* | |
// @require https://code.jquery.com/jquery-3.6.0.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @downloadURL https://gist.githubusercontent.com/angeldeniz11235/faac00ac0f158c9b43d89f2c323d93f5/raw/ | |
// @updateURL https://gist.githubusercontent.com/angeldeniz11235/faac00ac0f158c9b43d89f2c323d93f5/raw/ | |
// @grant none | |
// @version 1.4.1 | |
// @author AD | |
// @description Auto choose first option in choices list to make keyboard form submission easier 2/1/2022, 2:22:13 PM | |
// ==/UserScript== | |
waitForKeyElements ("input#radio_0", checkRadio); //wait for the element to load (ajax??) | |
function checkRadio(radio){ | |
radio.prop("checked",true); //check the radio | |
document.getElementById('radio_0').focus(); //give it focus to avoid having to tab | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment