So I put this together for the Avery's. 1 selects Does want to cross, 2 selects probably wants to cross etc.
Code:
// ==UserScript==
// @name
Avery
// @author
Drexl
// @description 1,2,3,4,5 keybinds.
// @include
*1.amazonaws.com/task/*
// @require
https://code.jquery.com/jquery-3.1.1.min.js
// ==/UserScript==
$(document).keyup(function(event) {
if(event.which == 49){
$("#jspsych-image-button-response-button-0").click();
}
});
$(document).keyup(function(event) {
if(event.which == 50){
$("#jspsych-image-button-response-button-1").click();
}
});
$(document).keyup(function(event) {
if(event.which == 51){
$("#jspsych-image-button-response-button-2").click();
}
});
$(document).keyup(function(event) {
if(event.which == 52){
$("#jspsych-image-button-response-button-3").click();
}
});
$(document).keyup(function(event) {
if(event.which == 53){
$("#jspsych-image-button-response-button-4").click();
}
});
Trying to figure out how to auto copy the completion code at the end and paste it into the other tab. I can't find the id number for the green button. http://prntscr.com/kshwxm I can't figure out what to use to make that command. Tried a few different things to hotkey the green button and still couldn't.
Tried
$(document).keyup(function(event) {
if(event.which == 49){
$(class="js-copy-code-btn btn btn-success").click();
}
and
$(document).keyup(function(event) {
if(event.which == 49){
$("#js-copy-code-btn btn btn-success").click();
}
wouldn't work. No idea how to write a script that would copy the completion code and paste it in another tab but for now I'm trying to figure this button thing out. There's a next button on the instructions I'm trying to hotkey as well to get past. If anyone can help me out please let me know. Thx