Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Forked from hay/gist:1351230
Last active December 20, 2015 20:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allquixotic/6194351 to your computer and use it in GitHub Desktop.
Save allquixotic/6194351 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
font-weight: bold;
font-style: italic;
color: #999;
}
a {
color: #99f;
}
h1 {
font-size: 16px;
}
h2 {
font-size: 12px;
}
#word {
font-size: 36px;
color: black;
}
button {
font-size: 24px;
padding: 10px;
}
</style>
</head>
<body>
<h1>Sillify your Root Access Chat Names!</h1>
<h2>By <a href="http://chat.stackexchange.com/rooms/118/root-access">Root Access</a></h2>
<p id="word"></p>
<button id="enterprise">Sillify!</button>
<button id="again">Again</button>
<br /><br /><br />
<br /><br /><br />
<small><a href="https://gist.github.com/allquixotic/6194351">Fork this gist on Github to add your own names ;)</a></small>
<script>
var wordOnly;
var prefixes = [
"Some","All","None","Mostly","Journeyman", "Brazilian", "Einsteins","Joker", "Canadian", "User", "Psyco", "Journeyman", "Dragon","Weird","Grace","ChatBot"
],
inWords = [
"Gowtham","Bob","Sathya","Oliver","Quixotic","HackToHell","Ben","Slhck","KronoS","Ariane","Boris","Tom", "Luke", "Tapped", "Leathe", "Nhinkle", "Clippy", "ekaj", "Hennes", "Mokubai", "BGM", "Tanner","Cavil"
],
suffixes = [ "Geek", "Grandson", "Salzburg", "Richards", "Guy", "Dino", ";-o))))))))))))", "Cat", "Dog", "_yo", "Wijsman", "Out", "n00b", "19850254", "Geek", "Lord", "Note"
],
items = [ "headphones", "USB amp", "Surface Pro", "fountain pen", "Steam library", "conspiracy theory", "power supply", "moderation queue", "physical fitness regimen", "color calibrator", "USB rocket launcher", "NSFW onebox", "userscript", "controversial answer", "GTX TITAN", "tinfoil hat", "registry hack", "Windows 98 Virtual Machine DEAR GOD NO", "tech support call horror story", "Image Macro", "litany against SuperUser not being a forum", "lightning-emitting VGA cable", "domesticated animal online false identity", "election campaign for moderator", "Sony Vegas Pro", "computer build request", "blog post", "screenshot", "demo", "dinner", "unsolicited advice", "incendiary remark", "rambling monologue", "wiretapping plan", "bad question", "Hearthstone deck", "dual Xeon server"
],
verbs = [ "starred", "banned", "programmed", "hacked", "repaired", "tinkered with", "backdoored", "refuted", "refused", "stolen", "downvoted", "upvoted", "deleted", "downloaded", "invaded", "intruded upon", "queried", "developed", "uninstalled", "ignored", "corrected", "challenged", "reorganized", "vetted", "rebutted", "creepily observed", "obliterated", "foiled", "flagged", "baleeted"
];
function $(id) {
return document.getElementById(id);
}
function rand(min, max) {
return Math.round(Math.random() * (max - min)) + min;
}
function generateOne(theword) {
var arr, isPrefix;
if(rand(0,1) == 0)
{
arr = prefixes;
isPrefix = true;
}
else
{
arr = suffixes;
isPrefix = false;
}
do {
var w = arr[ rand(0, arr.length - 1) ];
} while (theword.indexOf(w) !== -1);
if(isPrefix)
{
theword = w + theword;
}
else
{
theword = theword + w;
}
return theword;
}
function pickFromMiddle()
{
return inWords[rand(0, inWords.length - 1)];
}
function randomItem()
{
return items[rand(0, items.length - 1)];
}
function randomVerb()
{
return verbs[rand(0, verbs.length - 1)];
}
$("again").onclick = function() {
wordOnly = generateOne(pickFromMiddle());
$("word").innerHTML = wordOnly + "'s " + randomItem() + " was " + randomVerb() + " by " + generateOne(pickFromMiddle());
$("enterprise").innerHTML = "Sillify!";
}
$("enterprise").onclick = function() {
wordOnly = generateOne(wordOnly);
$("word").innerHTML = wordOnly + "'s " + randomItem() + " was " + randomVerb() + " by " + generateOne(pickFromMiddle());
$("enterprise").innerHTML = "Sillify even more!";
}
wordOnly = pickFromMiddle();
$("word").innerHTML = wordOnly + "'s " + randomItem();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment