Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Rstr(length) {
- let result = 'SandBox_V';
- const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
- const charactersLength = characters.length;
- let counter = 0;
- while (counter < length) {
- result += characters.charAt(Math.floor(Math.random() * charactersLength));
- counter += 1;
- }
- return result;
- }
- function Rstrs(length) {
- let result = '';
- const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
- const charactersLength = characters.length;
- let counter = 0;
- while (counter < length) {
- result += characters.charAt(Math.floor(Math.random() * charactersLength));
- counter += 1;
- }
- return result;
- }
- function Rand(min, max) { return Math.floor(Math.random() * (max - min) ) + min; }
- function set(obj, callback) {
- callback(obj);
- for (let [k, v] of Object.entries(obj)) {
- if (k.includes('reactProps') && v.onChange) {
- v.onChange({target: obj});
- }
- }
- }
- function signup() {
- let user = Rstr(5), pass = Rstrs(12);
- set(document.getElementById('signup-username'), obj => obj.value=user);
- set(document.getElementById('signup-password'), obj => obj.value=pass);
- var sb = document.getElementById('signup-button');
- if (sb.disabled) {
- return setTimeout(signup, 1500);
- }
- sb.click();
- }
- set(document.getElementById('MonthDropdown'), obj => obj.options[Rand(1, 12)].selected=true)
- set(document.getElementById('DayDropdown'), obj => obj.options[Rand(1, 28)].selected=true)
- set(document.getElementById('YearDropdown'), obj => obj.options[Rand(19, 25)].selected=true)
- let gndr = document.getElementById(Math.random() > 0.5 ? 'MaleButton' : 'FemaleButton');
- if (!gndr.firstChild.classList.contains('gender-selected')) { gndr.click(); }
- setTimeout(signup, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement