Insult Generator
Random Insult Generator
by steven keezer
HTML
<div id="insult"></div>
<a href="#" id="generate-insult">Generate Insult</a>
JavaScript
var one = [
"lazy",
"stupid",
"insecure",
"idiotic",
"slimy",
"smelly",
"pompous",
"communist",
"pie-eating",
"elitist",
"butterface",
"tone deaf",
"ugly",
"creepy"
];
var two = [
"poop",
"butt",
"turd",
"rectum",
"butt",
"crotch",
"bitch",
"turd",
"prick",
"taint",
"shart",
"sphincter"
];
var three = [
"pilot",
"canoe",
"captain",
"pirate",
"hammer",
"knob",
"box",
"jockey",
"nazi",
"waffle",
"goblin",
"blossom",
"biscuit",
"clown",
"socket",
"monster",
"hound",
"dragon",
"balloon"
];
function getInsult() {
return one[Math.floor(Math.random() * one.length)] + ' ' + two[Math.floor(Math.random() * two.length)] + ' ' + three[Math.floor(Math.random() * three.length)];
}
jQuery(document).ready(function() {
jQuery("#insult").html(getInsult());
});
jQuery("#generate-insult").on('mousedown', function() {
jQuery("#insult").html(getInsult());
});