您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Unleashes Your Sharingan on MTurk and Worker Captchas.
当前为
// ==UserScript== // @name Captcha Clear // @version 1.0 // @description Unleashes Your Sharingan on MTurk and Worker Captchas. // @author Eisenpower // @namespace Uchiha Clan // @icon https://i.imgur.com/M0jWVYS.png // @include *mturk* // @include *google.com/evaluation/endor/* // @grant GM_addStyle // @require https://code.jquery.com/jquery-latest.min.js // ==/UserScript== // Put your HIT's group ID here. // Default is Crowdsurf Support (https://www.mturk.com/mturk/preview?groupId=3K3X4GGOSLN9WHITSDB41LMDI6SMCK) or (https://worker.mturk.com/projects/3K3X4GGOSLN9WHITSDB41LMDI6SMCK/tasks/) var captcha_hit_group_id = "3K3X4GGOSLN9WHITSDB41LMDI6SMCK"; // Forces quick captcha load. GM_addStyle("#javascriptDependentFunctionality { display: block !important; }"); var mturkCaptcha = document.querySelector('input[name="userCaptchaResponse"]'); var workerCaptcha = document.getElementById('captchaInput'); // Opens the HIT window. document.onkeydown = function(e){ if (e.keyCode === 109 || e.keyCode === 189){ //"Numpad(Minus)- and Keyboard(Dash)-" is the default. Go to "http://keycode.info/" to get the keycode for your preffered key. var mturk_window = window.open("https://www.mturk.com/mturk/preview?groupId="+captcha_hit_group_id+"", "mturkCaptchaClear", "width=700, height=400, top=200, left=40, scrollbars=yes, statusbar=no"); var worker_window = window.open("https://worker.mturk.com/projects/"+captcha_hit_group_id+"/tasks/", "workerCaptchaClear", "width=700, height=400, top=200, left=760, scrollbars=yes, statusbar=no"); // Check pop up status try { worker_window.focus(); } catch (e) { alert("Captcha Clear pop-up blocked! Please add this site to your exception list."); } } }; if (window.top.name == "mturkCaptchaClear") MTURK(); if (window.top.name == "workerCaptchaClear") WORKER(); function MTURK () { // Removes the MTurk iframe. if (window.location.href.indexOf(captcha_hit_group_id) != -1){ $("iframe").remove(); } // Returns the HIT. if(($("input[name=isAccepted][value=true]").length) && ($("input[name=groupId][value="+captcha_hit_group_id+"]").length)){ $("img[src='/media/return_hit.gif']").click(); } // Closes the window if no Captcha. else if (!mturkCaptcha) { window.close(); } } function WORKER () { // Removes the Worker iframe var frame = document.querySelectorAll(".row.m-b-sm"); for (i = 0; i < frame.length; i ++) { frame[i].remove(); } // Returns the HIT var return_button = $('button.btn.btn-secondary')[0]; if (return_button.textContent == "Return" && window.location.href.indexOf(captcha_hit_group_id) != -1) { return_button.click(); } // Closes the window if no Captcha. else if (!workerCaptcha) { window.close(); } }