Mturk Multi Layer Master Cats

Keys A,S,D,F,G assigned to choices top to bottom, Key E to submit.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name       Mturk Multi Layer Master Cats
// @version    0.1
// @description  Keys A,S,D,F,G assigned to choices top to bottom, Key E to submit.
// @author     Cristo
// @include       *
// @copyright  2012+, You
// @namespace https://greasyfork.org/users/1973
// ==/UserScript==

var cE = 0;
var page = document.getElementById("wrapper");
var host = page.getElementsByTagName("ul")[cE];
var pick = host.getElementsByTagName("div");


page.tabIndex = "0";
page.focus();

function next() {
	cE++;
    host = page.getElementsByTagName("ul")[cE];
    pick = host.getElementsByTagName("div");
}


document.addEventListener( "keydown", kas, false);
		function kas(i) {
			if ( i.keyCode == 65 ) { //A   
                pick[0].click();
                next();
			}    
			if ( i.keyCode == 83 ) { //S 
                pick[1].click();
                next();
			}    
			if ( i.keyCode == 68 ) { //D  
                pick[2].click();
                next();
			}    
			if ( i.keyCode == 70 ) { //F  
                pick[3].click();
                next();
			} 
			if ( i.keyCode == 71 ) { //G 
                pick[4].click();
                next();
			}
            if ( i.keyCode == 69 ) { //E Key - 
    			document.getElementById( "submit_button" ).click();
    		}   
			
        }