Y_No_ThankU

Schoology Assignment Spam Bot

Oct 25th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*************************************************************************
  2. This script spams the comments of a schoology assignment. It's very fun (;
  3. *************************************************************************/
  4.  
  5. var speed = 5; //How long to wait between posting (in seconds). Change this to however long you want the delay to be.
  6. var text = "Example"; //Change the text in-between the quotes to change what the bot says
  7.  
  8.  
  9. //Don't touch anything underneath this line
  10. var a = speed * 1000; //Convert seconds to milliseconds (JavaScript uses milliseconds instead of seconds to determine time)
  11. function spam() {
  12. document.getElementById('edit-comment').value = text; //Change the comment box to the desired text
  13. document.getElementById('edit-submit').disabled = null; //Make schoology think the "submit" button isn't disabled; also meaning the user typed something
  14. document.getElementById('edit-submit').click(); //Click the submit button
  15. }
  16. setInterval(function(){spam();}, a); //Repeat the spam function
Advertisement
Add Comment
Please, Sign In to add comment