· 7 years ago · Dec 14, 2018, 10:04 PM
1/*
2 _ __ __ ___ ____
3 _____(_)___ _____ / /_ ____ / /_ _ _< // __ \
4 / ___/ / __ `/ __ \/ __ \/ __ \/ __/ | | / / // / / /
5 (__ ) / /_/ / / / / /_/ / /_/ / /_ | |/ / // /_/ /
6/____/_/\__, /_/ /_/_.___/\____/\__/ |___/_(_)____/
7 /____/
8
9created by <syswalker>
10made for use on change.org
11use TOR browser or block cookies on site, paste and run to generate a random name and email
12the script will deselect the checkbox that displays user info and submit the information generated
13this is by no means good code and it was put together quickly to get something done - it will not loop
14*/
15
16var firstnamebox1 = document.getElementById("first_name");
17var lastnamebox1 = document.getElementById("last_name");
18var emailbox = document.getElementsByClassName("js-email-sign")[0];
19var completebutton = document.getElementsByClassName("btn btn-action btn-big btn-full js-sign-button")[0];
20var checkbox = document.getElementsByClassName("mrxxs mtxxxs")[0];
21
22function randomGen(){return Math.random().toString(36).substring(2);}
23
24try { //attempt first instance of div and class names selection (inner blocks)
25 firstnamebox1.focus();firstnamebox1.value = randomGen();
26 lastnamebox1.focus();lastnamebox1.value = randomGen();
27 emailbox.focus();emailbox.value = randomGen() + "@gmail.com";
28 var firstnamebox2 = firstnamebox1.getElementsByClassName("border-rounded-t")[0];
29 var lastnamebox2 = lastnamebox1.getElementsByClassName("border-rounded-none")[0];
30 firstnamebox2.focus();firstnamebox2.value = randomGen();
31 lastnamebox2.focus();lastnamebox2.value = randomGen();
32 checkbox.click();
33} catch(ex){ //give up on inner blocks and use outer value selector
34 firstnamebox1.focus();firstnamebox1.value = randomGen();
35 lastnamebox1.focus();lastnamebox1.value = randomGen();
36 emailbox.focus();emailbox.value = randomGen() + "@gmail.com";
37 checkbox.click();
38}
39
40setTimeout(function(){completebutton.click();}, 100);
41setTimeout(function(){location.reload();}, 1000); //change this number to be lower on faster connections (default: 200)