dragonridersOfPern.js (9794B)
1 var nm1 = ["", "", "", "", "b", "c", "f", "g", "gr", "h", "j", "k", "l", "m", "n", "p", "r", "s", "sh", "t", "v", "w", "z"]; 2 var nm2 = ["a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "y", "y", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "ea", "ee", "au", "ai", "ie", "ea", "io"]; 3 var nm3 = ["b", "c", "d", "f", "g", "k", "l", "m", "n", "p", "r", "s", "t", "v", "x", "b", "br", "c", "ch", "d", "dr", "f", "fr", "g", "k", "l", "ld", "ll", "lr", "lt", "m", "n", "nc", "nd", "ng", "ngr", "nn", "nr", "ns", "nt", "p", "r", "rbr", "rm", "rn", "rr", "rsh", "rt", "sg", "shm", "ss", "sr", "st", "t", "th", "v", "x"]; 4 var nm4 = ["", "", "", "", "c", "d", "l", "l", "l", "l", "ll", "m", "n", "n", "n", "n", "n", "nt", "r", "rg", "rl", "s", "sh", "st", "t", "x"]; 5 var nm5 = ["b", "br", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "r", "s", "sh", "t", "th", "w", "z"]; 6 var nm6 = ["a", "e", "i", "o", "u", "a", "e", "i", "a", "a", "e", "i", "o", "u", "a", "e", "i", "a", "a", "e", "i", "o", "u", "a", "e", "i", "a", "a", "e", "i", "o", "u", "a", "e", "i", "a", "a", "e", "i", "o", "u", "ee", "io", "ia", "ai", "ea"]; 7 var nm7 = ["c", "d", "dn", "k", "kk", "kl", "l", "l", "l", "l", "lk", "ll", "ll", "ll", "lm", "ln", "m", "mm", "n", "nn", "r", "rdr", "rn", "rr", "s", "ss", "sn", "sl", "t", "tr", "v", "y", "z", "c", "d", "k", "l", "l", "m", "n", "r", "s", "t", "v", "y", "z", "kk", "ll", "ll", "mm", "nn", "rr", "ss"]; 8 var nm8 = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "h", "n", "m"]; 9 var nm9 = ["b", "br", "c", "ch", "cr", "d", "f", "g", "h", "j", "k", "l", "m", "p", "r", "s", "sp", "t", "v", "z"]; 10 var nm10 = ["a", "e", "i", "o", "u", "ia", "ai", "io"]; 11 var nm11 = ["dr", "g", "gr", "gl", "k", "l", "lz", "ld", "m", "n", "nd", "r", "r", "r", "r", "rr", "rm", "rn", "rt", "ss", "sr", "y", "z", "g", "k", "l", "m", "n", "r", "y", "z"]; 12 var nm12 = ["lth", "nth", "rth", "th"]; 13 var nm13 = ["b", "br", "ch", "f", "g", "h", "k", "l", "m", "n", "p", "pr", "r", "s", "t", "w", "z"]; 14 var nm14 = ["a", "e", "i", "o", "u"]; 15 var nm15 = ["d", "d", "l", "l", "l", "l", "ll", "lm", "ln", "ls", "m", "m", "n", "n", "nl", "nr", "nm", "r", "r", "r", "rl", "r", "s", "s", "yl", "yr", "yn"]; 16 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", "penis", "piss", "poop", "prick", "pube", "pussy", "queer", "scrotum", "sex", "shit", "slut", "smegma", "spunk", "tit", "tosser", "turd", "twat", "vagina", "wank", "whore", "wtf"]; 17 var br = ""; 18 19 function nameGen(type) { 20 $('#placeholder').css('textTransform', 'capitalize'); 21 var tp = type; 22 var element = document.createElement("div"); 23 element.setAttribute("id", "result"); 24 for (i = 0; i < 10; i++) { 25 rnd2 = Math.floor(Math.random() * nm3.length); 26 if (tp === 1) { 27 rnd = Math.floor(Math.random() * nm5.length); 28 rnd2 = Math.floor(Math.random() * nm6.length); 29 rnd3 = Math.floor(Math.random() * nm7.length); 30 rnd4 = Math.floor(Math.random() * nm6.length); 31 rnd5 = Math.floor(Math.random() * nm8.length); 32 if (i < 5) { 33 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm8[rnd5]; 34 for (j = 0; j < check.length; j++) { 35 while (names === check[j]) { 36 rnd = Math.floor(Math.random() * nm5.length); 37 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm8[rnd5]; 38 } 39 } 40 } else { 41 rnd6 = Math.floor(Math.random() * nm7.length); 42 rnd7 = Math.floor(Math.random() * nm6.length); 43 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm7[rnd6] + nm6[rnd7] + nm8[rnd5]; 44 for (j = 0; j < check.length; j++) { 45 while (names === check[j]) { 46 rnd = Math.floor(Math.random() * nm5.length); 47 names = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm7[rnd6] + nm6[rnd7] + nm8[rnd5]; 48 } 49 } 50 } 51 } else if (tp === 2) { 52 rnd5 = Math.floor(Math.random() * nm12.length); 53 if (i < 5) { 54 rnd = Math.floor(Math.random() * nm9.length); 55 rnd2 = Math.floor(Math.random() * nm10.length); 56 rnd3 = Math.floor(Math.random() * nm11.length); 57 rnd4 = Math.floor(Math.random() * nm10.length); 58 if (i < 3) { 59 names = nm9[rnd] + nm10[rnd2] + nm11[rnd3] + nm10[rnd4] + nm12[rnd5]; 60 for (j = 0; j < check.length; j++) { 61 while (names === check[j]) { 62 rnd = Math.floor(Math.random() * nm9.length); 63 names = nm9[rnd] + nm10[rnd2] + nm11[rnd3] + nm10[rnd4] + nm12[rnd5]; 64 } 65 } 66 } else { 67 rnd6 = Math.floor(Math.random() * nm11.length); 68 rnd7 = Math.floor(Math.random() * nm10.length); 69 names = nm9[rnd] + nm10[rnd2] + nm11[rnd3] + nm10[rnd4] + nm11[rnd6] + nm10[rnd7] + nm12[rnd5]; 70 for (j = 0; j < check.length; j++) { 71 while (names === check[j]) { 72 rnd = Math.floor(Math.random() * nm9.length); 73 names = nm9[rnd] + nm10[rnd2] + nm11[rnd3] + nm10[rnd4] + nm11[rnd6] + nm10[rnd7] + nm12[rnd5]; 74 } 75 } 76 } 77 } else { 78 rnd = Math.floor(Math.random() * nm13.length); 79 rnd2 = Math.floor(Math.random() * nm14.length); 80 rnd3 = Math.floor(Math.random() * nm15.length); 81 rnd4 = Math.floor(Math.random() * nm14.length); 82 if (i < 8) { 83 names = nm13[rnd] + nm14[rnd2] + nm15[rnd3] + nm14[rnd4] + nm12[rnd5]; 84 for (j = 0; j < check.length; j++) { 85 while (names === check[j]) { 86 rnd = Math.floor(Math.random() * nm13.length); 87 names = nm13[rnd] + nm14[rnd2] + nm15[rnd3] + nm14[rnd4] + nm12[rnd5]; 88 } 89 } 90 } else { 91 rnd6 = Math.floor(Math.random() * nm15.length); 92 rnd7 = Math.floor(Math.random() * nm14.length); 93 names = nm13[rnd] + nm14[rnd2] + nm15[rnd3] + nm14[rnd4] + nm15[rnd6] + nm14[rnd7] + nm12[rnd5]; 94 for (j = 0; j < check.length; j++) { 95 while (names === check[j]) { 96 rnd = Math.floor(Math.random() * nm13.length); 97 names = nm13[rnd] + nm14[rnd2] + nm15[rnd3] + nm14[rnd4] + nm15[rnd6] + nm14[rnd7] + nm12[rnd5]; 98 } 99 } 100 } 101 } 102 } else { 103 rnd = Math.floor(Math.random() * nm1.length); 104 rnd2 = Math.floor(Math.random() * nm2.length); 105 rnd5 = Math.floor(Math.random() * nm4.length); 106 if (i < 3) { 107 while (rnd < 4) { 108 rnd = Math.floor(Math.random() * nm1.length); 109 } 110 while (rnd5 < 4) { 111 rnd5 = Math.floor(Math.random() * nm4.length); 112 } 113 names = nm1[rnd] + nm2[rnd2] + nm4[rnd5]; 114 for (j = 0; j < check.length; j++) { 115 while (names === check[j]) { 116 rnd = Math.floor(Math.random() * nm1.length); 117 names = nm1[rnd] + nm2[rnd2] + nm4[rnd5]; 118 } 119 } 120 } else if (i < 7) { 121 rnd3 = Math.floor(Math.random() * nm3.length); 122 rnd4 = Math.floor(Math.random() * nm2.length); 123 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd5]; 124 for (j = 0; j < check.length; j++) { 125 while (names === check[j]) { 126 rnd = Math.floor(Math.random() * nm1.length); 127 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd5]; 128 } 129 } 130 } else { 131 rnd3 = Math.floor(Math.random() * nm3.length); 132 rnd4 = Math.floor(Math.random() * nm2.length); 133 rnd6 = Math.floor(Math.random() * nm3.length); 134 rnd7 = Math.floor(Math.random() * nm2.length); 135 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm3[rnd6] + nm2[rnd7] + nm4[rnd5]; 136 for (j = 0; j < check.length; j++) { 137 while (names === check[j]) { 138 rnd = Math.floor(Math.random() * nm1.length); 139 names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm3[rnd6] + nm2[rnd7] + nm4[rnd5]; 140 } 141 } 142 } 143 } 144 br = document.createElement('br'); 145 element.appendChild(document.createTextNode(names)); 146 element.appendChild(br); 147 } 148 if (document.getElementById("result")) { 149 document.getElementById("placeholder").removeChild(document.getElementById("result")); 150 } 151 document.getElementById("placeholder").appendChild(element); 152 }