A9 - Category Validation

Does stuff.

  1. // ==UserScript==
  2. // @name A9 - Category Validation
  3. // @namespace http://kadauchi.com/
  4. // @version 1.0.4
  5. // @description Does stuff.
  6. // @author Kadauchi
  7. // @icon http://kadauchi.com/avatar4.jpg
  8. // @include /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/
  9. // @grant GM_log
  10. // @require https://code.jquery.com/jquery-3.1.0.min.js
  11. // @hitname Category Validation (WARNING: This HIT may contain adult content. Worker discretion is advised.)
  12. // @hitsave https://s3.amazonaws.com/mturk_bulk/hits/213127554/gNnUF_IpktVYa17QxCSO9A.html
  13. // ==/UserScript==
  14.  
  15. _category_validation();
  16.  
  17. function _category_validation () {
  18. if ($('u:contains(What we are looking for will change after every HIT!)').length) {
  19.  
  20. // Keybinds
  21. $(document).keydown(function (e) {
  22. switch (e.which) {
  23. case 96: // Numpad 0
  24. $('#noItem').click();
  25. break;
  26. case 97: // Numpad 1
  27. $('#oneItem, #noPersonal, #noCatalog, #noOverlay, #noSliceDice').click();
  28. $('input[name="objectView"][value="No"]').click();
  29. break;
  30. case 98: // Numpad 2
  31. $('#multipleItem, #noPersonal, #noCatalog, #noOverlay, #noSliceDice').click();
  32. $('input[name="objectView"][value="No"]').click();
  33. break;
  34. case 101: // Numpad 5
  35. $('#yesSliceDice').click();
  36. break;
  37. case 102: // Numpad 6
  38. $('#yesOverlay').click();
  39. break;
  40. case 103: // Numpad 7
  41. $('#yesPersonal').click();
  42. break;
  43. case 105: // Numpad 9
  44. $('#yesCatalog').click();
  45. break;
  46. case 13: // Enter
  47. $('#submitButton').click();
  48. break;
  49. }
  50. });
  51. console.log('activated');
  52. }
  53. }
  54.  
  55.  
  56. /*
  57. Jharkan @MTC
  58. http://www.mturkcrowd.com/posts/349481/
  59.  
  60. Numpad0::
  61. send {tab}{space}
  62. return
  63.  
  64. Numpad1::
  65. send {tab}{down}
  66. sleep, 100
  67. send {tab 2}{right}{tab}{right}{tab}{right}
  68. return
  69.  
  70. Numpad2::
  71. send {tab}{down 2}
  72. sleep, 100
  73. send {tab 2}
  74. send {right}{tab}{right}{tab}{right}
  75. return
  76.  
  77. Numpad6::
  78. send {left}
  79. return
  80.  
  81. Numpad7::
  82. send, {shift down}{tab}{tab}{shift up}
  83. send {left}
  84. return
  85.  
  86. Numpad9::
  87. send, {shift down}{tab}{shift up}
  88. send {left}
  89. return
  90.  
  91. ^9::
  92. suspend
  93. return
  94.  
  95. ^3::
  96. ExitApp
  97. */

QingJ © 2025

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