Greasy Fork is available in English.

MTurk Nova Flag images

Pre-checks "No images" for Nova - Flag images HITs

  1. // ==UserScript==
  2. // @name MTurk Nova Flag images
  3. // @namespace http://idlewords.net
  4. // @description Pre-checks "No images" for Nova - Flag images HITs
  5. // @include https://www.mturkcontent.com/dynamic/hit*
  6. // @version 2
  7. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. if ($("p:contains('Please mark the images if they show')").length) {
  12. var instructHead = $("div.panel-heading").children("strong:contains('Instructions')");
  13. var instructBody = instructHead.parent().next();
  14. instructBody.prop('id','instruct_body');
  15. instructHead.html("<a href='javascript:void();' id='hide_instruct'>+</a> Instructions");
  16. instructHead.children("a").css('color', 'white');
  17.  
  18. $("#hide_instruct").click(function() {
  19. if ($("#instruct_body").is(":visible")) {
  20. var replaceText = $(this).text().replace("-", "+");
  21. $(this).text(replaceText);
  22. $("#instruct_body").hide();
  23. } else {
  24. var replaceText = $(this).text().replace("-", "+");
  25. $(this).text(replaceText);
  26. $("#instruct_body").show();
  27. }
  28. });
  29. $("#hide_instruct").click();
  30.  
  31. $("#checkbox10").prop('checked', true);
  32. $("[id^='checkbox']").change(function() {
  33. if ($(this).prop('checked') === true) {
  34. if ($(this).prop('id') === 'checkbox10') {
  35. $("[id^='checkbox']").filter("[id!='checkbox10']").each(function (){
  36. $(this).prop('checked', false);
  37. });
  38. } else if ($("#checkbox10").prop('checked') === true) {
  39. $("#checkbox10").prop('checked', false);
  40. }
  41. }
  42. });
  43. }