Mturk Multi Layer Master Cats

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
    		}   
			
        }