Last active
June 7, 2018 03:04
-
-
Save mhorbul/9d521a1c00751f4ab077b87f38c1257b to your computer and use it in GitHub Desktop.
Fill in Reading Log on parentstudentportal.com
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
Array.from(document.getElementsByClassName('lpform')).forEach(function(f) { | |
f.select('input[type=TEXT]').each(function(e) { | |
e.value = 'AH' | |
}); | |
var submit = f.select('input[type=SUBMIT]'); | |
submit.find(function(e) { return e.name == 'action[save]' }).click(); | |
setTimeout(function() { submit.find(function(e) { return e.name == 'action[print]' }).click() }, 3000) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment