turk HPCBeauty

Hides the Instructions in the Mturk hit

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name      turk HPCBeauty
// @version    0.1
// @description Hides the Instructions in the Mturk hit
// @author     Cristo
// @include       *
// @copyright  2012+, You
// @namespace https://greasyfork.org/users/1973
// ==/UserScript==

var page = document.getElementById("mturk_form");
var div = page.getElementsByClassName("row")[0];
div.style.display = "none";
var hand = page.getElementsByClassName("col-sm-6")[0];
console.log(hand.innerHTML);

var but = document.createElement("button");
but.innerHTML = "Show/Hide Instructions"
hand.parentNode.insertBefore(but,hand);

but.addEventListener("mousedown", mas, false);

function mas() {
    if (div.style.display == "none") {
    	div.style.display = "block"
    } else if (div.style.display == "block") {
    	div.style.display = "none"
    }
}