MTurk Confirm Return HIT (with queue support)

A prompt to confirm returning a HIT to prevent accidental returns.

  1. // ==UserScript==
  2. // @name MTurk Confirm Return HIT (with queue support)
  3. // @author Chet Manley and Kerek
  4. // @namespace Kerek
  5. // @version 0.2
  6. // @description A prompt to confirm returning a HIT to prevent accidental returns.
  7. // @include https://www.mturk.com/mturk/accept*
  8. // @include https://www.mturk.com/mturk/continue*
  9. // @include https://www.mturk.com/mturk/preview*
  10. // @include https://www.mturk.com/mturk/return*
  11. // @include https://www.mturk.com/mturk/myhits*
  12. // @require http://code.jquery.com/jquery-latest.min.js
  13. // ==/UserScript==
  14.  
  15. // v0.2, 2014-07-03 Added support for returns from HITs assigned to you/queue page
  16. // v0.1, 2013-08-15 Confirm returning a HIT. Prevent accidental returns.
  17. // ---------------------------------------------------------------------------
  18.  
  19. $('a[href^="/mturk/return?"]').click(function() {
  20. return confirm('Are you sure you want to return this HIT?\r\nPress OK to return the HIT or press Cancel to continue working on the HIT.');
  21. });