Skip to content

Instantly share code, notes, and snippets.

@KentoNishi
Created January 24, 2022 20:26
Show Gist options
  • Select an option

  • Save KentoNishi/cb8a9da0b89b3ba199edeba94dc0a6cf to your computer and use it in GitHub Desktop.

Select an option

Save KentoNishi/cb8a9da0b89b3ba199edeba94dc0a6cf to your computer and use it in GitHub Desktop.
Give everyone 1 point in Schoology
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