Created
June 23, 2016 19:59
-
-
Save nwjlyons/61b6c5680c53d7da8baf7245aac7a970 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
javascript:(function() { | |
var adjectives = [ | |
"Autumn", "Hidden", "Bitter", "Misty", "Silent", "Empty", "Dry", "Dark", "Summer", "Icy", | |
"Delicate", "Quiet", "White", "Cool", "Spring", "Winter", "Patient", "Twilight", "Dawn", | |
"Crimson", "Wispy", "Weathered", "Blue", "Billowing", "Broken", "Cold", "Damp", "Falling", | |
"Frosty", "Green", "Long", "Late", "Lingering", "Bold", "Little", "Morning", "Muddy", "Old", | |
"Red", "Rough", "Still", "Small", "Sparkling", "Wandering", "Withered", "Wild", "Black", | |
"Young", "Holy", "Solitary", "Fragrant", "Aged", "Snowy", "Proud", "Floral", "Restless", | |
"Divine", "Polished", "Ancient", "Purple", "Lively", "Nameless"]; | |
var nouns = [ | |
"Waterfall", "River", "Breeze", "Moon", "Rain", "Wind", "Sea", "Morning", "Snow", "Lake", | |
"Sunset", "Pine", "Shadow", "Leaf", "Dawn", "Glitter", "Forest", "Hill", "Cloud", "Meadow", | |
"Sun", "Glade", "Bird", "Brook", "Butterfly", "Bush", "Dew", "Dust", "Field", "Fire", | |
"Flower", "Firefly", "Feather", "Grass", "Haze", "Mountain", "Night", "Pond", "Darkness", | |
"Snowflake", "Silence", "Sound", "Sky", "Shape", "Surf", "Thunder", "Violet", "Water", | |
"Wildflower", "Wave", "Water", "Resonance", "Sun", "Wood", "Dream", "Cherry", "Tree", "Fog", | |
"Frost", "Voice", "Paper", "Frog", "Smoke", "Star"]; | |
var adjective = adjectives[Math.floor(Math.random()*adjectives.length)]; | |
var noun = nouns[Math.floor(Math.random()*nouns.length)]; | |
var textarea = document.createElement("textarea"); | |
textarea.innerText = adjective + " " + noun; | |
document.body.appendChild(textarea); | |
textarea.select(); | |
document.execCommand("Copy", false, null); | |
textarea.remove(); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bookmarklet that generates a random name and copies it to your clipboard.
Tested in Chrome Version 51.0.2704.103 (64-bit) on OSX
Link to the original gist https://gist.github.com/afriggeri/1266756