// ==UserScript==
// @name A9 Keywords ALL NOs (08/20/19)
// @version 1.0
// @author Jose Canseco
// @include /^https://(www|s3)\.(mturkcontent|amazonaws)\.com/
// @grant none
// @require https://www.mturkcontent.com/dynamic/hit?assignmentId=3R6P78PK7LIGJLH17R22DUHA3NXTGQ/*
// ==/UserScript==
const radios_and_checkboxes = document.querySelectorAll('[type="checkbox"],[type="radio"]');
function preclick (elements_to_click, ...numbers) {
const radios_and_checkboxes_to_preclick = [];
Array.prototype.slice.call(arguments).forEach(el => radios_and_checkboxes_to_preclick.push(el));
radios_and_checkboxes_to_preclick.forEach(element => radios_and_checkboxes[element].click());
console.log(`There are a total of ${radios_and_checkboxes.length} checkboxes/radio's on this page. The requested preclicks are numbers ${radios_and_checkboxes_to_preclick}`);
}
preclick(0,2,4,6,8,10,12,14,16,18,20);