A9 - Category Validation

Does stuff.

当前为 2016-09-13 提交的版本,查看 最新版本

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