Greasy Fork 还支持 简体中文。

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?assignmentId=3X4JMASXCNVZ9TN9O0BG0AVJHJXB0L&hitId=3XBYQ44Z6PQPQLKHRRQLIFEOLZWTW7
  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: case 81: // Numpad 0 or q
  24. $('#noItem').click();
  25. break;
  26. case 97: case 87: // Numpad 1 or w
  27. $('#oneItem, #noPersonal, #noCatalog, #noOverlay, #noSliceDice, #completeObject').click();
  28. break;
  29. case 98: case 69: // Numpad 2 or e
  30. $('#multipleItem, #noPersonal, #noCatalog, #noOverlay, #noSliceDice, #completeObject').click();
  31. break;
  32. case 99: case 82: // Numpad 3 or r
  33. $('#deadLink').click();
  34. break;
  35. case 100: case 49: // Numpad 4 or 1
  36. $('#yesPersonal').click();
  37. break;
  38. case 101: case 50: // Numpad 5 or 2
  39. $('#yesCatalog').click();
  40. break;
  41. case 102: case 51: // Numpad 6 or 3
  42. $('#yesOverlay').click();
  43. break;
  44. case 103: case 52: // Numpad 7 or 4
  45. $('#partialObject').click();
  46. break;
  47. case 13: case 70: // Enter or f
  48. $('#submitButton').click();
  49. break;
  50. }
  51. });
  52. console.log('activated');
  53. }
  54. }
  55.  
  56.  
  57. /*
  58. Jharkan @MTC
  59. http://www.mturkcrowd.com/posts/349481/
  60.  
  61. Numpad0::
  62. send {tab}{space}
  63. return
  64.  
  65. Numpad1::
  66. send {tab}{down}
  67. sleep, 100
  68. send {tab 2}{right}{tab}{right}{tab}{right}
  69. return
  70.  
  71. Numpad2::
  72. send {tab}{down 2}
  73. sleep, 100
  74. send {tab 2}
  75. send {right}{tab}{right}{tab}{right}
  76. return
  77.  
  78. Numpad6::
  79. send {left}
  80. return
  81.  
  82. Numpad7::
  83. send, {shift down}{tab}{tab}{shift up}
  84. send {left}
  85. return
  86.  
  87. Numpad9::
  88. send, {shift down}{tab}{shift up}
  89. send {left}
  90. return
  91.  
  92. ^9::
  93. suspend
  94. return
  95.  
  96. ^3::
  97. ExitApp
  98. */