Created
January 24, 2022 20:26
-
-
Save KentoNishi/cb8a9da0b89b3ba199edeba94dc0a6cf to your computer and use it in GitHub Desktop.
Give everyone 1 point in Schoology
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
| elements = Array.from(document.querySelectorAll('div')).filter(e => e.className.includes('QuestionGrade-focus-outline')); | |
| elements.forEach((item, index) => { | |
| setTimeout(() => { | |
| item.click(); | |
| const score = item.querySelector('input'); | |
| score.value = '1'; | |
| setTimeout(() => { | |
| score.dispatchEvent(new Event('blur')); | |
| }, 100); | |
| }, index * 500); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment