RelevanceQuest

Flag images Non Adult and hide instructions

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         RelevanceQuest 
// @description Flag images Non Adult and hide instructions 
// @version       0.5
// @include       https://www.mturkcontent.com/dynamic/*
// @author        Cristo
// @copyright    2012+, You
// @namespace https://greasyfork.org/users/1973
// ==/UserScript==

var label = document.getElementsByTagName('label')[0];
var newDiv = document.createElement("div");

var but = document.createElement("span");
but.style.color = "#1170A0";
but.style.textDecoration = "underline";
but.style.cursor = "pointer";
but.innerHTML = "Instructions";

label.parentNode.insertBefore(but, label.nextSibling);
label.parentNode.insertBefore(newDiv, label.nextSibling);


var divs = document.getElementsByTagName('div');
var ps = document.getElementsByTagName('p');
var table = document.getElementsByTagName('table')[0];
newDiv.appendChild(divs[2]);
newDiv.appendChild(ps[0]);
newDiv.appendChild(ps[1]);
newDiv.appendChild(ps[2]);
newDiv.appendChild(divs[3]);
newDiv.appendChild(ps[3]);
newDiv.appendChild(table);
newDiv.appendChild(divs[4]);
newDiv.appendChild(divs[5]);
newDiv.style.display = "none";

but.addEventListener("mousedown",function() {
    if (newDiv.style.display == "none") {
    	newDiv.style.display = "block";
    } else if (newDiv.style.display == "block") {
    	newDiv.style.display = "none";
    }}, false);

var ins = document.getElementsByTagName('input');
for (var f = 0; f < ins.length; f++){
    if (ins[f].value === 'NOT_ADULT'){
        ins[f].click();
    }
}