您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides instructions, auto opens link, when radio is clicked new window closes and hit submits.
// ==UserScript== // @name Relevance Groupon on Mturk // @version 1.0 // @description Hides instructions, auto opens link, when radio is clicked new window closes and hit submits. // @author Cristo // @include https://s3.amazonaws.com/mturk_bulk/* // @copyright 2012+, You // @namespace https://gf.qytechs.cn/users/1973 // ==/UserScript== if (window.location.toString().indexOf("ASSIGNMENT_ID_NOT_AVAILABLE") === -1){ var page = document.getElementById("mturk_form"); var instructions = page.getElementsByClassName("panel panel-primary")[0]; var site = page.getElementsByTagName("a")[1].href; var inputs = page.getElementsByTagName("input"); var sub = document.getElementById("submitButton"); instructions.style.display = "none"; var but = document.createElement("input"); but.type = "button"; but.value = "Instructions"; instructions.parentNode.insertBefore(but, instructions.nextSibling); var newWidth; var newLeft; var windowTo; var windowEnd = window.screenX + window.outerWidth; var leftSpace = window.screenX; var rightSpace = screen.width - windowEnd; if (leftSpace > rightSpace) { newWidth = window.screenX; newLeft = "0"; } else { newWidth = screen.width - windowEnd; newLeft = windowEnd; } windowTo = 'width=' + newWidth; windowTo += ', height=' + screen.height; windowTo += ', top=' + "0"; windowTo += ', left=' + newLeft; var newin = window.open(site, "name", windowTo); document.addEventListener( "click", cas, false ); function cas (d) { if(d.target == but){ if(instructions.style.display == "none") { instructions.style.display = "block"; } else if (instructions.style.display == "block") { instructions.style.display = "none"; } } if(d.target == inputs[2]){ newin.close(); sub.click(); } if(d.target == inputs[3]){ newin.close(); sub.click(); } } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址