您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple helper script for AJ Ghergich email HITs on MTurk (Mechanical Turk). It linkifies the URL, automatically focuses on the email input box and makes it easier to select the "Not found" button.
当前为
// ==UserScript== // @name AJ Ghergich Helper (MTurk) // @description A simple helper script for AJ Ghergich email HITs on MTurk (Mechanical Turk). It linkifies the URL, automatically focuses on the email input box and makes it easier to select the "Not found" button. // @namespace https://greasyfork.org/users/3408 // @author DonovanM // @include https://s3.amazonaws.com/mturk_bulk/hits* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js // @version 0.9 // @grant none // ==/UserScript== window.addEventListener("load", checkAJ, false); function checkAJ() { if (document.getElementsByTagName("h3")[0].innerHTML.indexOf("Find The Email Address For The URL Below") !== -1) main(); } function main() { $("table").css("border-width", "0").css("border-spacing", "0").css("border-collapse", "collapse"); $("td").css("border", "0").css("padding", "2px"); var url = $("#mturk_form > p:nth-child(4) > b:nth-child(1)"); var parent = url.parent(); var textBox = $("#Q1Url"); var cantFind = $("#mturk_form > table:nth-child(6) > tbody:nth-child(1) > tr:nth-child(3)"); var radios = $("input:radio"); url.remove(); link = $("<a>"); if (url.text().indexOf("http") == -1) { link.attr('href', "http://" + url.text()) } else { link.attr('href', url.text()) } link.text(url.text()).attr('target', "_blank"); url = link; url.click(function() { textBox.focus() }); cantFind.click(function() { radios.eq(0).prop('checked', true) }); cantFind.hover( function() { $("td", this).css("background-color" , "#cef")}, function() { $("td", this).css("background-color" , "white")} ); cantFind.css('cursor', "pointer"); parent.append(url); }