Skip to content

Instantly share code, notes, and snippets.

@zYeoman
Created December 1, 2016 16:08
Show Gist options
  • Save zYeoman/f2c00de890e1acd52e5c147920877729 to your computer and use it in GitHub Desktop.
Save zYeoman/f2c00de890e1acd52e5c147920877729 to your computer and use it in GitHub Desktop.
Generate readable password. Will not continue. Maybe.
// ==UserScript==
// @name ReadablePass
// @namespace zyeoman
// @description Generate readable password
// @include *
// @version 1
// @grant none
// ==/UserScript==
reg = /([^aeiou]*[aeiou]*([^aeiou]*([^aeiou][aeiou]+[^aeiou]*$)))/
host = /(?:\w+\.)*?([^\.]*)\.[^\.]*$/.exec(window.location.host) [1]
list = reg.exec(host)
for (i = 0; i < list.length; i++) {
if (list[i].length >= 3 && list[i].length <= 5)
console.log(list[i])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment