//Credits alert("Based on Phenomena/Mostafa code"); alert("Base Modified by @JonathanRS"); alert("Minor fixes & improvements by finn34"); alert("If it worked for you, don't forget to like! Thanks :)"); var speed = prompt("Type 1,000 if your PC is fast, 500 for a slow pc") function Letter() { var code = ""; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (var i = 0; i < 1; i++) code += chars.charAt(Math.floor(Math.random() * chars.length)); return code; } function Number() { var code = ""; var chars = "0123456789"; for (var i = 0; i < 1; i++) code += chars.charAt(Math.floor(Math.random() * chars.length)); return code; } function Hyphen() { var code = ""; code = "-"; return code; } function Random() { var code = ""; var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (var i = 0; i < 1; i++) code += chars.charAt(Math.floor(Math.random() * chars.length)); return code; } function main() { document.getElementsByName("ppw-claimCode")[0].value = Random()+ Random()+ Random()+ Random()+ Hyphen()+ Random()+ Random()+ Random()+ Random()+ Random()+ Random()+ Hyphen()+ Random()+ Random()+ Random()+ Random(); //EDIT THIS TOP LINE FOR A CUSTOM PATTERN BY REPLACING Random() FOR Letter() OR Number() (Don't change the places of the Hyphen()s! ) document.getElementsByName("ppw-claimCodeApplyPressed")[0].click(); } setInterval(function() { main(); }, speed);