Skip to content

Instantly share code, notes, and snippets.

@tobysteward
Last active February 26, 2020 11:06
Show Gist options
  • Save tobysteward/a6142619e55055eb571deaf797010509 to your computer and use it in GitHub Desktop.
Save tobysteward/a6142619e55055eb571deaf797010509 to your computer and use it in GitHub Desktop.

Generators

Chrome-only console scripts to generate username and passwords.

Usernames

Source: https://passwordsgenerator.net/?length=8&symbols=0&numbers=1&lowercase=1&uppercase=0&similar=1&ambiguous=1&client=1&autoselect=0

let values = [];

for (i = 0; i < 5000; i++) {
  d2O();
  values.push(document.querySelector('input#final_pass').value);
}

copy(values.join('\n'));
console.log('Complete! Results copied to clipboard.');

Passwords

Source: https://jmiller.com/password-generator/

let values = [];

document.querySelector('button#digits').click();

for (i = 0; i < 5000; i++) {
  document.querySelector('button#generate_button').click();
  values.push(document.querySelector('#password').textContent.replace(/\s+/g, '-').toLowerCase());
}

copy(values.join('\n'));
console.log('Complete! Results copied to clipboard.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment