Skip to content

Instantly share code, notes, and snippets.

@j100002ben
Created January 15, 2013 07:36
Show Gist options
  • Save j100002ben/4536948 to your computer and use it in GitHub Desktop.
Save j100002ben/4536948 to your computer and use it in GitHub Desktop.
/*
* Run this code in Browser's JS console at the judge page of the class
* and it will select every radio chooses with submit the form for you.
*/
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = false;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js';
var h = document.getElementsByTagName('head')[0]; h.appendChild(ga);
})();
(function(){
setTimeout(function(){
if( ! window.jQuery ){
setTimeout(arguments.callee, 500);
return ;
}
window.jQuery('input[type=radio][value$=_3]').attr('checked','checked');
window.jQuery('#Button1').click();
}, 500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment