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.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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