Greasy Fork镜像 还支持 简体中文。

Captcha Clear

Unleashes Your Sharingan on Worker Captchas.

  1. // ==UserScript==
  2. // @name Captcha Clear
  3. // @version 1.1
  4. // @description Unleashes Your Sharingan on Worker Captchas.
  5. // @author Eisenpower
  6. // @namespace Uchiha Clan
  7. // @icon https://i.imgur.com/M0jWVYS.png
  8. // @include *mturk*
  9. // @include *google.com/evaluation/endor/*
  10. // @grant GM_addStyle
  11. // @require https://code.jquery.com/jquery-latest.min.js
  12. // ==/UserScript==
  13.  
  14. // Put your HIT's group ID here.
  15. // Default is Crowdsurf Support (https://worker.mturk.com/projects/3K3X4GGOSLN9WHITSDB41LMDI6SMCK/tasks/)
  16. var captcha_hit_group_id = '3K3X4GGOSLN9WHITSDB41LMDI6SMCK';
  17.  
  18. // Forces quick captcha load.
  19. GM_addStyle("#javascriptDependentFunctionality { display: block !important; }");
  20.  
  21. if ($("p:contains(stocks will go up or down)").length) return;
  22.  
  23. var workerCaptcha = document.getElementById('captchaInput');
  24.  
  25. // Opens the HIT window.
  26. document.onkeydown = function(e){
  27. 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.
  28. var worker_window = window.open(`https://worker.mturk.com/projects/${captcha_hit_group_id}/tasks/`, `workerCaptchaClear`, `width=700, height=400, top=200, left=360, statusbar=no`);
  29.  
  30. // Check pop up status
  31. try {
  32. worker_window.focus();
  33. }
  34. catch (e) {
  35. alert('Captcha Clear pop-up blocked! Please add this site to your exception list.');
  36. }
  37. }
  38. };
  39.  
  40. if (window.name == "workerCaptchaClear") WORKER();
  41.  
  42. function WORKER () {
  43. // Removes the Worker iframe
  44. var frame = document.querySelectorAll('.row.m-b-sm');
  45. for (i = 0; i < frame.length; i ++) {
  46. frame[i].remove();
  47. }
  48.  
  49. // Returns the HIT
  50. var return_button = $('button.btn.btn-secondary')[0];
  51. if (return_button.textContent == 'Return' && window.location.href.indexOf(captcha_hit_group_id) != -1) {
  52. return_button.click();
  53. }
  54.  
  55. // Closes the window if no Captcha.
  56. else if (!workerCaptcha) {
  57. window.close();
  58. }
  59. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址