// ==UserScript== // @name MTurk Nova Flag images // @namespace http://idlewords.net // @description Pre-checks "No images" for Nova - Flag images HITs // @include https://www.mturkcontent.com/dynamic/hit* // @version 1 // @require https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js // @grant none // @downloadURL none // ==/UserScript== if ($("p:contains('Please mark the images if they show')").length) { $("#checkbox10").prop('checked', true); $("[id^='checkbox']").change(function() { if ($(this).prop('checked') === true) { if ($(this).prop('id') === 'checkbox10') { $("[id^='checkbox']").filter("[id!='checkbox10']").each(function (){ $(this).prop('checked', false); }); } else if ($("#checkbox10").prop('checked') === true) { $("#checkbox10").prop('checked', false); } } }); }