Skip to content

Instantly share code, notes, and snippets.

@mhorbul
Last active June 7, 2018 03:04
Show Gist options
  • Save mhorbul/9d521a1c00751f4ab077b87f38c1257b to your computer and use it in GitHub Desktop.
Save mhorbul/9d521a1c00751f4ab077b87f38c1257b to your computer and use it in GitHub Desktop.
Fill in Reading Log on parentstudentportal.com
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