Research Project discrimination

Submits the HIT once you click on a radio button.

  1. // ==UserScript==
  2. // @name Research Project discrimination
  3. // @description Submits the HIT once you click on a radio button.
  4. // @version 1
  5. // @author mordea
  6. // @include https://s3.amazonaws.com/mturk_bulk/*
  7. // @require http://code.jquery.com/jquery-2.1.0.min.js
  8. // @namespace https://greasyfork.org/users/11379
  9. // ==/UserScript==
  10.  
  11. var content = document.body.textContent || document.body.innerText;
  12. var hasText = content.indexOf("This task is to judge whether a sentence mentions a specific type of discrimination")!==-1;
  13. if(hasText){
  14. setTimeout(function(){
  15. $('input[type=radio]').on('change', function() {
  16. $(this).closest("Form").submit();
  17. });
  18. });
  19. }