Created
December 1, 2016 16:08
-
-
Save zYeoman/f2c00de890e1acd52e5c147920877729 to your computer and use it in GitHub Desktop.
Generate readable password. Will not continue. Maybe.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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