Tags
Web Dev
Tool
Published
Apr 9, 2021
noBg
noBg
Why Would U Wanna Do Dis
Are you and your classmates struggling with Campuswire participation grades? It’s clear to all of us that this mandatory participation alongside a competitive grading method benefits nobody and jeopardizes collaboration in the process of learning.
It’s a pain in the ass to manually upvote your classmates’ replies. Just copy-paste the snippet below and it will do the work for you automatically!
Simple Steps to Take
This won’t take you any longer than a minute or two.
- Sign in to your Campuswire account.
- Go to Class feed.
- Press
F12
on your keyboard. (Orright click
anywhere on the page & clickinspect
on the pop-up).
- Go to the
Console
panel & scroll to the bottom.
- Copy-paste the code below.
- Press
Enter
.
const delayFor = (ms) => new Promise((resolve) => setTimeout(() => resolve(), ms)); (async () => { for (let p of document.querySelectorAll('div.post-preview-wrapper')) { p.click(); console.log(`Clicking post`); await delayFor(3000); document.querySelectorAll('div.spark').forEach((b) => { b.click(); console.log('Upvote clicked'); }); await delayFor(1000); } })();
Now You’re a DAD
This snippet will only upvote replies in the first 20 or so posts. You can scroll down if you want to proceed further. Refresh or close the Campuswire tab or your browser to terminate the execution.