/************************************************************************* This script spams the comments of a schoology assignment. It's very fun (; *************************************************************************/ var speed = 5; //How long to wait between posting (in seconds). Change this to however long you want the delay to be. var text = "Example"; //Change the text in-between the quotes to change what the bot says //Don't touch anything underneath this line var a = speed * 1000; //Convert seconds to milliseconds (JavaScript uses milliseconds instead of seconds to determine time) function spam() { document.getElementById('edit-comment').value = text; //Change the comment box to the desired text document.getElementById('edit-submit').disabled = null; //Make schoology think the "submit" button isn't disabled; also meaning the user typed something document.getElementById('edit-submit').click(); //Click the submit button } setInterval(function(){spam();}, a); //Repeat the spam function