Advertisement
Peerapat_PKY

make id

Oct 4th, 2023
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. function Rstr(length) {
  2. let result = 'SandBox_V';
  3. const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  4. const charactersLength = characters.length;
  5. let counter = 0;
  6. while (counter < length) {
  7. result += characters.charAt(Math.floor(Math.random() * charactersLength));
  8. counter += 1;
  9. }
  10. return result;
  11. }
  12. function Rstrs(length) {
  13. let result = '';
  14. const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  15. const charactersLength = characters.length;
  16. let counter = 0;
  17. while (counter < length) {
  18. result += characters.charAt(Math.floor(Math.random() * charactersLength));
  19. counter += 1;
  20. }
  21. return result;
  22. }
  23. function Rand(min, max) { return Math.floor(Math.random() * (max - min) ) + min; }
  24. function set(obj, callback) {
  25. callback(obj);
  26.  
  27. for (let [k, v] of Object.entries(obj)) {
  28. if (k.includes('reactProps') && v.onChange) {
  29. v.onChange({target: obj});
  30. }
  31. }
  32. }
  33. function signup() {
  34. let user = Rstr(5), pass = Rstrs(12);
  35.  
  36. set(document.getElementById('signup-username'), obj => obj.value=user);
  37. set(document.getElementById('signup-password'), obj => obj.value=pass);
  38.  
  39. var sb = document.getElementById('signup-button');
  40.  
  41. if (sb.disabled) {
  42. return setTimeout(signup, 1500);
  43. }
  44.  
  45. sb.click();
  46. }
  47. set(document.getElementById('MonthDropdown'), obj => obj.options[Rand(1, 12)].selected=true)
  48. set(document.getElementById('DayDropdown'), obj => obj.options[Rand(1, 28)].selected=true)
  49. set(document.getElementById('YearDropdown'), obj => obj.options[Rand(19, 25)].selected=true)
  50. let gndr = document.getElementById(Math.random() > 0.5 ? 'MaleButton' : 'FemaleButton');
  51. if (!gndr.firstChild.classList.contains('gender-selected')) { gndr.click(); }
  52. setTimeout(signup, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement