Created
December 19, 2015 15:12
-
-
Save pbaisla/4a6404e793f0c7ef67e6 to your computer and use it in GitHub Desktop.
A script to automate the filling of feedback forms that have to be filled after each semester at MNNIT before you can see your results for the semester. I personally always fill the forms providing honest feedback. This is for those who don't want to submit any feedback.
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
/* | |
* INSTRUCTIONS: | |
* 1. Open the developer console in your browser (Press F12) | |
* 2. Copy-paste this script into the console and press Enter | |
* 3. Make any changes if required | |
* 4. Click on the submit buttom | |
* 5. Repeat steps 2 to 4 till done. | |
* NOTE: Instead of copy-pasting each time you can press the UP arrow in the console to get the last entered text. | |
* | |
* P.S. It is recommended that you submit an honest feedback :P | |
* | |
*/ | |
// This value will be set as the feedback for all questions. | |
// Choose a value between 0 and 5 depending on how you liked the course. | |
FEEDBACK_VALUE = 2 | |
// This text will be copied to the comments. | |
// Change it here if you want something different. | |
COMMENT = "Feedback should be made optional. \ | |
Most people have no interest in filling \ | |
it and hence do it randomly just to get \ | |
it over with. Making it optional would \ | |
give a better idea of the actual feedback \ | |
for a course.\n\n\ | |
P.S. This feedback was automatically \ | |
generated with a script." | |
var feedbacks = $("input[type=hidden]"); | |
for (var i=0; i < feedbacks.length; i++) { | |
feedbacks[i].value = FEEDBACK_VALUE; | |
} | |
var class_questions = $("input[name^=rb]"); | |
for (var i=0; i < class_questions.length; i++) { | |
class_questions[i].checked = true; | |
} | |
var comments = $("textarea"); | |
for (var i=0; i < comments.length; i++) { | |
comments[i].value = COMMENT; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment