Last active
April 10, 2017 16:54
-
-
Save jukbot/a5b9dee6608f7acde01228f858df667f to your computer and use it in GitHub Desktop.
KMUTT LECTURER EVALUATE SCRIPT v2 (2015-2017)
This file contains 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
How to use this Evaluate script v2 | |
======================================================================= | |
1. visit http://apollo.kmutt.ac.th/newassess-std/default.aspx | |
2. select registered courses then enter the evaluation page. | |
3. right click at the browser > Inspect element > Console | |
4. select the script below, copy and paste it in command box. | |
5. enter and done!! | |
(Note: type "allow parsing" for first use in Firefox browser) | |
====================================================================== | |
// He's pretty good teacher (RANDOM 4-5) | |
javascript: var n = document.getElementsByClassName("scorebox").length; console.log(n + " questions have been checked"); | |
for(i=0; i< n; i++){ var x = document.getElementsByName("RBL" + i); var m=(Math.floor(Math.random() * x.length-1) + 1)%2; x[m].checked = true; } | |
// He's teaching well, almost perfect. (RANDOM 3-5) | |
javascript: var n = document.getElementsByClassName("scorebox").length; console.log(n + " questions have been checked"); | |
for(i=0; i< n; i++){ var x = document.getElementsByName("RBL" + i); var m=(Math.floor(Math.random() * x.length-1) + 1)%3; x[m].checked = true; } | |
// Ahh, he need some improve. (RANDOM 2-5) | |
javascript: var n = document.getElementsByClassName("scorebox").length; console.log(n + " questions have been checked"); | |
for(i=0; i< n; i++){ var x = document.getElementsByName("RBL" + i); var m=(Math.floor(Math.random() * 4) + 0); x[m].checked = true; } | |
// For bad ass (RANDOM 1-3) | |
javascript: var n = document.getElementsByClassName("scorebox").length; console.log(n + " questions have been checked"); | |
for(i=0; i< n; i++){ var x = document.getElementsByName("RBL" + i); var m=(Math.floor(Math.random() * 3) + 2); x[m].checked = true; } | |
//var s = document.getElementsByName("RBL16"); s[4].checked = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment