Bark Engineering

NumPad 1-6, 1=Cyberbulling 2=Depression/Cutting/Suicidal thoughts 3=Drug/Alcohol content 4=Sexual content 5=Violence/Threats of Violence 6=None Submits HIT when pressed.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Bark Engineering
// @namespace    https://greasyfork.org/en/users/27845
// @version      1.3
// @description  NumPad 1-6, 1=Cyberbulling 2=Depression/Cutting/Suicidal thoughts 3=Drug/Alcohol content 4=Sexual content 5=Violence/Threats of Violence 6=None Submits HIT when pressed.
// @author       Pablo
// @include      https://www.mturkcontent.com/*
// @include      https://s3.amazonaws.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-2.1.0.min.js
// ==/UserScript==

var autosubmit = true;
window.focus();

window.onkeydown = function (event) {
   if ((event.keyCode === 97)) { // 1 Cyberbullying
       $( "input[value='cyberbullying']" ).click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
   if ((event.keyCode === 98)) { // 2 Depression/Cutting/Suicidal thoughts
       $("input[value='depression']").click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
   if ((event.keyCode === 99)) { // 3 Drug/Alcohol content
       $("input[value='drugs']").click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
   if ((event.keyCode === 100)) { // 4 Sexual content
       $("input[value='sex']").click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
   if ((event.keyCode === 101)) { // 5 Violence/Threats of Violence
       $("input[value='violence']").click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
   if ((event.keyCode === 102)) { // 6 None
       $("input[value='none']").click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
// for Cyberbullying Yes/No HIT

   if ((event.keyCode === 49)) { // 1 Cyberbullying
       $( "input[value='cyberbullying']" ).click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
   if ((event.keyCode === 50)) { // 2 No
       $("input[value='none']").click();
       if (autosubmit) {
           $("#submitButton").click();
       }
   }
};