Untitled
/* Instructions: 1. Login to your canvas, then redirect the webpage to online class video stream. 2. Copy the snippet below 3. Then just paste it inside a Chrome or Firefox developer console to run 4. If you see the console print ("Find Button") then the script is working This script should automatically select a poll answer whenever there is a new one popping up */ function clickButton() { let button = document.getElementsByClassName("btn btn-primary"); console.log("Find Button"); if(button.length > 0) { button[0].click(); console.log("Button clicked") } setTimeout(function(){ clickButton();}, 100); } clickButton();
Leave a Comment