I want to make a button (no style in particular) appear that will toggle this script on and off
var meta = document.createElement('meta');
meta.httpEquiv = "refresh";
meta.content = "30"; //Change the 30 to however many seconds you want to wait
document.getElementsByTagName('head')[0].appendChild(meta);
setTimeout(function(){
if(document.getElementById("next-btn")){
document.getElementById("next-btn").click()
}
var choice = Math.floor(Math.random()*100) < 100; //Change the 93 to change percentage
if(choice){
document.querySelectorAll("input[value=Pass]") [0].click();
}else{
document.querySelectorAll("input[value=Fail]") [0].click();
}
}, 1000);