Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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();
})()
@nwjlyons

This comment has been minimized.

Copy link
Owner Author

commented Jun 23, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.