You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
5.3 KiB
JavaScript

var nm1 = ["b", "bw", "c", "ch", "cr", "cl", "g", "h", "k", "kl", "q", "sq", "w"];
var nm2 = ["a", "o", "u", "a", "u", "a", "u", "a", "u", "a", "u", "a", "u", "a", "u", "a", "u", "a", "a", "a", "a", "au", "ua", "ua", "aa", "ee", "ua", "uo", "oa", "ia", "uoa"];
var nm3 = ["c", "cc", "ch", "g", "gg", "k", "kk", "q", "r", "rr", "x", "c", "cc", "ch", "g", "gg", "k", "kk", "q", "r", "rr", "x", "ck", "cr", "cq", "ckr", "ccr", "cx", "cz", "gr", "ggr", "gkr", "gcr", "kkr", "kc", "kcr", "kx", "kz", "kr", "kw", "qr", "qw", "rk", "rkr", "rc", "rkw", "rqw", "r"];
var nm4 = ["c", "cc", "ch", "g", "gg", "k", "kk", "q", "r", "rr", "x"];
var nm5 = ["c", "ck", "h", "k", "ss", "w", "wk", "x"];
var nm6 = ["Acid", "Anger", "Angry", "Beam", "Bitter", "Black", "Blade", "Bleak", "Blood", "Bold", "Bone", "Boulder", "Brass", "Broad", "Chaos", "Crag", "Craze", "Crazy", "Crimson", "Crystal", "Dark", "Dawn", "Dead", "Death", "Demon", "Devil", "Doom", "Dread", "Ebon", "Ember", "Fire", "Flame", "Foul", "Fume", "Fury", "Ghost", "Giant", "Gloom", "Gold", "Grave", "Grey", "Grim", "Hate", "Hell", "Hollow", "Iron", "Kill", "Lone", "Mad", "Marble", "Marsh", "Metal", "Night", "Phantom", "Primal", "Prime", "Rabid", "Rage", "Razor", "Red", "Shadow", "Silent", "Spark", "Spite", "Star", "Stark", "Steel", "Stone", "Storm", "Swift", "Terror", "Thorn", "Thrill", "Thunder", "Twilight", "Venom", "Warp"]
var nm7 = ["beak", "belly", "bill", "breast", "claw", "crest", "crown", "eye", "eyes", "feather", "head", "mantle", "plume", "tail", "talon", "wing", "wings", "gaze", "stare"];
var check = ["anal", "anus", "arse", "ass", "balls", "bastard", "biatch", "bigot", "bitch", "bollock", "bollok", "boner", "boob", "bugger", "bum", "butt", "clitoris", "cock", "coon", "crap", "cunt", "damn", "dick", "dildo", "dyke", "fag", "feck", "felching", "fellate", "fellatio", "flange", "fuck", "gay", "lust", "goddamn", "homo", "jackass", "jerk", "jizz", "knobend", "labia", "muff", "nigga", "nigger", "niggers", "penis", "piss", "poop", "prick", "pube", "pussy", "queer", "scrotum", "sex", "shit", "slut", "smegma", "spunk", "tit", "tosser", "turd", "twat", "vagina", "wank", "whore", "wtf"];
var br = "";
function nameGen() {
$('#placeholder').css('textTransform', 'capitalize');
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
rnd = Math.random() * nm1.length | 0;
rnd2 = Math.random() * nm2.length | 0;
rnd5 = Math.random() * nm5.length | 0;
while (nm1[rnd] === nm5[rnd5]) {
rnd5 = Math.random() * nm5.length | 0;
}
if (i < 2) {
names = nm1[rnd] + nm2[rnd2] + nm5[rnd5];
for (j = 0; j < check.length; j++) {
while (names === check[j]) {
rnd = Math.floor(Math.random() * nm1.length);
names = nm1[rnd] + nm2[rnd2] + nm5[rnd5];
}
}
} else if (i < 8) {
rnd3 = Math.random() * nm3.length | 0;
rnd4 = Math.random() * nm2.length | 0;
while (nm5[rnd5] === nm3[rnd3]) {
rnd5 = Math.random() * nm5.length | 0;
}
if (i < 5) {
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm5[rnd5];
for (j = 0; j < check.length; j++) {
while (names === check[j]) {
rnd = Math.floor(Math.random() * nm1.length);
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd6] + nm2[rnd7] + nm5[rnd5];
}
}
} else {
rnd6 = Math.random() * nm4.length | 0;
rnd7 = Math.random() * nm2.length | 0;
if (i < 7) {
names = nm1[rnd] + nm2[rnd2] + nm4[rnd6] + nm2[rnd7] + nm3[rnd3] + nm2[rnd4] + nm5[rnd5];
for (j = 0; j < check.length; j++) {
while (names === check[j]) {
rnd = Math.floor(Math.random() * nm1.length);
names = nm1[rnd] + nm2[rnd2] + nm4[rnd6] + nm2[rnd7] + nm3[rnd3] + nm2[rnd4] + nm5[rnd5];
}
}
} else {
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd6] + nm2[rnd7] + nm5[rnd5];
for (j = 0; j < check.length; j++) {
while (names === check[j]) {
rnd = Math.floor(Math.random() * nm1.length);
names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd6] + nm2[rnd7] + nm5[rnd5];
}
}
}
}
} else {
rnd = Math.random() * nm6.length | 0;
rnd2 = Math.random() * nm7.length | 0;
while (nm6[rnd] === nm7[rnd2]) {
rnd2 = Math.random() * nm7.length | 0;
}
names = nm6[rnd] + nm7[rnd2];
}
br = document.createElement('br');
element.appendChild(document.createTextNode(names));
element.appendChild(br);
}
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
document.getElementById("placeholder").appendChild(element);
}