@(you need an account to see links)Code:// ==UserScript== // @(you need an account to see links) Neocola Machine APer // @(you need an account to see links)space Neocola Machine APer // @grant none // @(you need an account to see links)cription Selects a random combination at the Neocola Machine // @include (you need an account to see links) // @include (you need an account to see links) // @include (you need an account to see links) // @grant none // ==/UserScript== var butt = document.getElementsByTagName('input'); //Selects Random Token var elements = document.getElementsByName('token_id'); for(var i = 0; i < elements.length; ++i){ var max = elements[i].length; max = parseInt(max) max = max-1; var tempN = Math.floor((Math.random()*max)+1); elements[i].selectedIndex = tempN; } // Predefined Combo // Selects Combination var selCriteria = document.querySelector("select[name=neocola_flavor]"); if (selCriteria != null) selCriteria.selectedIndex = 6; var selCriteria = document.querySelector("select[name=red_button]"); if (selCriteria != null) selCriteria.selectedIndex = 4; /* // Random Combo // var selCriteria = document.querySelector("select[name=neocola_flavor]"); // if (selCriteria != null) selCriteria.selectedIndex = 3; var elements = document.getElementsByName('neocola_flavor'); for(var i = 0; i < elements.length; ++i){ var max = elements[i].length; max = parseInt(max) max = max-1; var tempN = Math.floor((Math.random()*max)+1); elements[i].selectedIndex = tempN; } // var selCriteria = document.querySelector("select[name=red_button"); // if (selCriteria != null) selCriteria.selectedIndex = 2; var elements = document.getElementsByName('red_button'); for(var i = 0; i < elements.length; ++i){ var max = elements[i].length; max = parseInt(max) max = max-1; var tempN = Math.floor((Math.random()*max)+1); elements[i].selectedIndex = tempN; } */ //Presses buttons for(var j = 0; j < butt.length; ++j) { if (butt[j].value == "Onward!") { setTimeout(777); butt[j].click(); } } for(var j = 0; j < butt.length; ++j) { if (butt[j].value == "Continue to your doom...") { setTimeout(777); butt[j].click(); } } for(var j = 0; j < butt.length; ++j) { if (butt[j].value == "Play Again!") { setTimeout(777); butt[j].click(); } } console.log(butt);
i made that for myself like 3 years ago, it just clicks buttons and randomly selects stuff from the drop-down lists
Right now it's set to use a pre-defined combination, if you want a random one comment the entire section from line 24 to 29 and uncomment from 32 to 52.