mmmturkeybacon Add AutoAccept Checkbox to HIT Preview

Adds AutoAccept Checkbox to a HIT Preview

  1. // ==UserScript==
  2. // @name mmmturkeybacon Add AutoAccept Checkbox to HIT Preview
  3. // @version 1.02
  4. // @description Adds AutoAccept Checkbox to a HIT Preview
  5. // @author mmmturkeybacon
  6. // @namespace http://userscripts.org/users/523367
  7. // @match https://*.mturk.com/mturk/preview?*
  8. // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
  9. // @grant GM_log
  10. // ==/UserScript==
  11.  
  12. $(document).ready(function()
  13. {
  14. var is_preview = $('input[type="hidden"][name="isAccepted"][value="false"]').length > 0;
  15. if (is_preview)
  16. {
  17. $('td[nowrap=""][align="center"]:contains("Want to work on this HIT?")').each(function()
  18. {
  19. var $parent_table = $(this).parent().parent();
  20. $parent_table.append('<tr><td colspan="3"></td><td></td></tr>');
  21. $parent_table.append('<tr><td valign="bottom" nowrap="" height="26" align="center" colspan="3"><a style="display: block;" name="autoAcceptCheckboxWrapper"><input type="checkbox" onclick="javascript:toggleAllCheckboxes(this);" value="on" name="autoAcceptEnabled"></input>Automatically accept the next HIT</a></td></tr>');
  22. });
  23. }
  24. });