Last active
January 1, 2016 17:39
-
-
Save zenozeng/8179047 to your computer and use it in GitHub Desktop.
自动评教脚本(部分)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oHead = document.getElementsByTagName('HEAD').item(0); | |
var oScript= document.createElement("script"); | |
oScript.type = "text/javascript"; | |
oScript.src="https://code.jquery.com/jquery-2.1.4.min.js"; | |
oScript.onload = function() { | |
jQuery('input[value="5"], input[value="优秀"]').each(function() { | |
console.log(jQuery(this)); | |
jQuery(this).click(); | |
}); | |
$('#Button1').click(); | |
} | |
oHead.appendChild(oScript); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment