ESC to skip HIT/Return HIT

Skip or return a HIT by pressing ESC

  1. // ==UserScript==
  2. // @name ESC to skip HIT/Return HIT
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Skip or return a HIT by pressing ESC
  6. // @author Karuption
  7. // @match https://worker.mturk.com/projects/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. $(document).ready(function() {
  12. if( $(".force-inline").length != 0) {
  13. return;
  14. }
  15. });
  16.  
  17. $(window).keydown(e => {
  18.  
  19. if(e.which == 27) {
  20. $(".force-inline").submit();
  21. }
  22. });