- Joined
- Mar 4, 2016
- Messages
- 2,781
- Reaction score
- 5,294
- Points
- 963
- Age
- 34
- Gender
- Female
I LOVE stupid puns so I'm really enjoying these
Code:
// ==UserScript==
// @name Tristian
// @version 1.0
// @description 1, 2, 3
// @author SarahAshlee90
// @include https://public.ukp.informatik.tu-darmstadt.de*
// @grant none
// @require https://code.jquery.com/jquery-3.1.1.min.js
// ==/UserScript==
let i = 0;
window.addEventListener("keydown", function (event) {
if(event.code === "Numpad1"){
$('input[value="A"]').eq(i).click();
i++;
$('input[value="X"]').eq(i).focus();
}
if(event.code === "Numpad2"){
$('input[value="B"]').eq(i).click();
i++;
$('input[value="X"]').eq(i).focus();
}
if(event.code === "Numpad3"){
$('input[value="X"]').eq(i).click();
i++;
$('input[value="X"]').eq(i).focus();
}
});