wowMechagnomes.js (10095B)
1 var nm1 = ["", "", "", "", "b", "c", "d", "f", "g", "gl", "gn", "h", "k", "kl", "kr", "l", "m", "p", "t", "th"]; 2 var nm2 = ["a", "e", "i", "o", "u", "i", "i", "ee"]; 3 var nm3 = ["b", "c", "d", "k", "kl", "l", "m", "n", "nc", "r", "t", "th", "tl", "ttl", "cl", "ck", "ld", "lk", "ll", "mk", "ml", "nb", "nd", "nk", "nl", "rk", "rl", "tk", "tl", "thk"]; 4 var nm4 = ["a", "e", "i", "o", "u", "i", "i", "a", "e", "i", "o", "u", "i", "i", "ee"]; 5 var nm5 = ["b", "bl", "br", "d", "f", "fl", "g", "k", "kl", "l", "m", "n", "nkl", "rg", "s", "r", "t", "th", "v", "w"]; 6 var nm6 = ["", "", "c", "ck", "k", "n", "nk", "rn", "s", "sh", "zz"]; 7 var nm7 = ["", "", "b", "d", "f", "g", "gl", "gn", "h", "j", "k", "kl", "l", "m", "n", "p", "s", "t", "th"]; 8 var nm8 = ["a", "e", "i", "o", "u", "i", "i", "e", "y"]; 9 var nm9 = ["b", "d", "k", "l", "m", "n", "nk", "nn", "p", "r", "s", "ss", "t", "th", "tl", "ttl", "x", "lb", "ld", "lk", "ll", "mk", "nd", "nk", "nkl", "sk", "sl", "tk", "tkl"]; 10 var nm10 = ["a", "e", "i", "o", "u", "i", "a", "e", "i", "o", "u", "i", "a", "e", "i", "o", "u", "i", "ey", "ee"]; 11 var nm11 = ["b", "bl", "br", "d", "f", "fl", "g", "k", "kl", "l", "m", "n"]; 12 var nm12 = ["", "", "", "", "", "ck", "k", "l", "ll", "n", "nk", "s", "sh", "z", "zz"]; 13 var nm13 = ["acer", "angle", "battle", "bellow", "berry", "billow", "bizz", "black", "brass", "brisk", "buzz", "buzzin", "cast", "click", "clock", "cog", "coil", "copper", "dazzle", "draxle", "dual", "fast", "fine", "fix", "fizzle", "flicker", "fluke", "fuzz", "fuzzy", "gear", "grimey", "grind", "grip", "heavy", "light", "lock", "luck", "mecha", "mekka", "mint", "nifty", "oil", "oily", "over", "pipe", "pitch", "porter", "puddle", "pull", "pulse", "pump", "quick", "quiet", "quirk", "rail", "rust", "sad", "scratch", "sharp", "shift", "shine", "shiny", "short", "silver", "single", "slip", "spanner", "spark", "sparkle", "spring", "spry", "squiggle", "steam", "stitch", "storm", "strike", "swift", "switch", "teeny", "temper", "thistle", "thunder", "tidy", "tink", "tinker", "toggle", "tossle", "trick", "tricky", "twist", "wheel", "whistle", "wiggle", "wire", "wobble", "wrench"]; 14 var nm14 = ["badge", "balloon", "bang", "beam", "bell", "bells", "bit", "blast", "block", "bonk", "boss", "box", "brain", "brake", "branch", "brass", "brick", "bus", "cable", "case", "chalk", "chart", "cheek", "chin", "click", "clock", "clue", "cog", "coil", "collar", "cookie", "cord", "count", "craft", "crank", "crown", "cub", "cup", "data", "dish", "disk", "dock", "drop", "dwadle", "field", "fizz", "fizzle", "flow", "fluke", "fuse", "fuzz", "gauge", "gear", "grinder", "guard", "hammer", "heart", "house", "kettle", "laugh", "light", "locket", "master", "mix", "needle", "nozzle", "patch", "phase", "pickle", "pipe", "pitch", "pocket", "riddle", "scheme", "shape", "signal", "span", "spanner", "spark", "spell", "spindle", "spinner", "spring", "sprocket", "steel", "stitch", "strip", "torque", "trick", "twist", "whistle", "wire", "wizzle", "wrench"]; 15 var br = ""; 16 17 function nameGen(type) { 18 var nm15 = ["Achiever", "Admin", "Alexa", "Alive", "Alpha", "Analyst", "Andromeda", "Andyroid", "Angel", "Anima", "Animus", "Annedroid", "Answer", "Apex", "Archibolt", "Artoo", "Ash", "Aspect", "Assist", "Aura", "Aurora", "Auto", "Aware", "Axel", "Azerty", "Ballister", "Base", "Bearings", "Beauty", "Beezleburt", "Bender", "Beta", "Bit", "Blangtron", "Blender", "Blingie", "Blossom", "Bob", "Bolt", "Boltervolt", "Booker", "Boomer", "Borgstein", "Bracer", "Brain", "Brainstorm", "Brobot", "Bult", "Butler", "Buttons", "Byte", "Cabe", "Calculon", "Capacitron", "Carburettor", "Care", "Carer", "Ceethree", "Celcius", "Center", "Central", "Cerebrum", "Cerebrus", "Circuit", "Circuitclown", "Clamps", "Clank", "Cloud", "Code", "Codec", "Codex", "Cogsworth", "Cole", "Colossus", "Combot", "Companion", "Computops", "Copper", "Coptorque", "Core", "Corion", "Corius", "Cosmic", "Cosmos", "Cranky", "Creator", "Creepio", "Crowby", "Cube", "Curious", "Cyb", "Cybel", "Cyd", "Cyl", "Cylinder", "Data", "Deus", "Devi", "Different", "Dimension", "Dipstick", "Discovery", "Distributor", "Dock", "Domo", "Doppler", "Dot", "Dotty", "Dream", "Drillbit", "Dustie", "Earl", "Echo", "Ego", "Encrypt", "Encrypted", "Energy", "Enigma", "Experiment", "Expert", "Face", "Fahrenheit", "Familiar", "Fatamechana", "Feature", "Feel", "Fembot", "Fiber", "Figure", "Fluke", "Flux", "Form", "Frame", "Friend", "Funsize", "Gabriel", "Gadget", "Gage", "Gear", "Gearbox", "Geargrinder", "Gearhead", "Gears", "Gearz", "Genesis", "Gere", "Ghost", "Gift", "Gigabit", "Gigaboot", "Gigatron", "Gizmo", "Gizmodeus", "Gnomatron", "Gnomebotnik", "Gnomecchio", "Gnomechio", "Golem", "Greez", "Grezzer", "Grindmygears", "Guard", "Guardian", "Guest", "Guide", "Gyro", "Hal", "Hammer", "Harmony", "Heart", "Heatsink", "Helix", "Hello", "Hex", "Hexidecimal", "Holmes", "Hope", "Hubble", "Idea", "Image", "Impulse", "Inspectorg", "Inspectorque", "Intra", "Jet", "Jiggabit", "Jiggatron", "Jiggawatt", "Jigsaw", "Jin", "Junior", "Junkers", "Kelvin", "Kitt", "Knave", "Krank", "Led", "Life", "Light", "Locutie", "Logic", "Luck", "Lucky", "Lumos", "Mace", "Mach", "Machina", "Made", "Mage", "Master", "Matrix", "Max", "Mecha", "Mechan", "Mechandrew", "Mechanne", "Mechazor", "Mechi", "Mekkatorque", "Memory", "Micro", "Mig", "Mind", "Mindful", "Nemo", "Neo", "Nerve", "Nixie", "Norbit", "Nozzle", "Ohm", "Omega", "Omni", "One", "Onezero", "Optix", "Oracle", "Original", "Otis", "Patch", "Patches", "Patchup", "Pintsize", "Pitchford", "Pixel", "Plex", "Plexi", "Plier", "Present", "Prime", "Prism", "Probe", "Probey", "Probot", "Proto", "Pushrod", "Qwerty", "Ranger", "Ratcher", "Ratchet", "Reply", "Response", "Robbie", "Robbitt", "Robbott", "Robert", "Roberto", "Roboto", "Rocketsocket", "Rubber", "Rust", "Rusty", "Sample", "Sark", "Science", "Scrap", "Scrappie", "Scrappy", "Scrapyara", "Scrapyard", "Screwie", "Screwsie", "Scythe", "Scyther", "Search", "Self", "Shell", "Shift", "Shortcircuit", "Signal", "Silver", "Sink", "Sirballister", "Siri", "Skip", "Socket", "Solace", "Sole", "Sona", "Soul", "Spanner", "Spannerwork", "Spark", "Sparkle", "Sparkplug", "Sparky", "Spencer", "Spirit", "Sprite", "Spud", "Spudnik", "Sterling", "Stranger", "Student", "Switch", "Synapse", "Synergy", "System", "Talus", "Tec", "Tech", "Tera", "Terra", "Test", "Thing", "Thinkerer", "Thought", "Tin", "Tink", "Tinker", "Tinkerbell", "Tinkerbelle", "Tinkerbolt", "Tinkertool", "Tinkertoon", "Tinkertoy", "Tobor", "Torque", "Torquenado", "Tracker", "Trashbot", "Trashcan", "Trashcant", "Trinket", "Trinkette", "Tweak", "Twobit", "Ultron", "Unique", "Unit", "User", "Vessel", "Volt", "Voxel", "Wagner", "Wallee", "Wankel", "Ware", "Watcher", "Watt", "Whole", "Wire", "Wish", "Witness", "Wobblecog", "Wonder", "Workshop", "Zen", "Zero"]; 19 var tp = type; 20 $('#placeholder').css('textTransform', 'capitalize'); 21 var element = document.createElement("div"); 22 element.setAttribute("id", "result"); 23 for (i = 0; i < 10; i++) { 24 if (i < 5) { 25 rnd = Math.random() * nm15.length | 0; 26 names = nm15[rnd]; 27 nm15.splice(rnd, 1); 28 } else { 29 if (tp === 1) { 30 nameFem(); 31 while (nMs === "") { 32 nameFem(); 33 } 34 } else { 35 nameMas(); 36 while (nMs === "") { 37 nameMas(); 38 } 39 } 40 rnd = Math.random() * nm13.length | 0; 41 rnd2 = Math.random() * nm14.length | 0; 42 while (nm13[rnd] === nm14[rnd2]) { 43 rnd2 = Math.random() * nm14.length | 0; 44 } 45 names = nMs + " " + nm13[rnd] + nm14[rnd2]; 46 } 47 br = document.createElement('br'); 48 element.appendChild(document.createTextNode(names)); 49 element.appendChild(br); 50 } 51 if (document.getElementById("result")) { 52 document.getElementById("placeholder").removeChild(document.getElementById("result")); 53 } 54 document.getElementById("placeholder").appendChild(element); 55 } 56 57 function nameMas() { 58 nTp = Math.random() * 6 | 0 59 rnd = Math.random() * nm1.length | 0; 60 rnd2 = Math.random() * nm2.length | 0; 61 rnd3 = Math.random() * nm6.length | 0; 62 rnd4 = Math.random() * nm3.length | 0; 63 rnd5 = Math.random() * nm4.length | 0; 64 while (nm3[rnd4] === nm1[rnd] || nm3[rnd4] === nm6[rnd3]) { 65 rnd4 = Math.random() * nm3.length | 0; 66 } 67 if (nTp < 4) { 68 nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm4[rnd5] + nm6[rnd3]; 69 } else { 70 rnd6 = Math.random() * nm2.length | 0; 71 rnd7 = Math.random() * nm5.length | 0; 72 while (nm5[rnd7] === nm3[rnd4] || nm5[rnd7] === nm6[rnd3]) { 73 rnd7 = Math.random() * nm5.length | 0; 74 } 75 if (nTp === 4) { 76 nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd4] + nm2[rnd6] + nm5[rnd7] + nm4[rnd5] + nm6[rnd3]; 77 } else { 78 nMs = nm1[rnd] + nm2[rnd2] + nm5[rnd7] + nm2[rnd6] + nm3[rnd4] + nm4[rnd5] + nm6[rnd3]; 79 } 80 } 81 testSwear(nMs); 82 } 83 84 function nameFem() { 85 nTp = Math.random() * 6 | 0 86 rnd = Math.random() * nm7.length | 0; 87 rnd2 = Math.random() * nm8.length | 0; 88 rnd3 = Math.random() * nm12.length | 0; 89 rnd4 = Math.random() * nm9.length | 0; 90 rnd5 = Math.random() * nm10.length | 0; 91 while (nm9[rnd4] === nm7[rnd] || nm9[rnd4] === nm12[rnd3]) { 92 rnd4 = Math.random() * nm9.length | 0; 93 } 94 if (nTp < 4) { 95 nMs = nm7[rnd] + nm8[rnd2] + nm9[rnd4] + nm10[rnd5] + nm12[rnd3]; 96 } else { 97 rnd6 = Math.random() * nm8.length | 0; 98 rnd7 = Math.random() * nm11.length | 0; 99 while (nm11[rnd7] === nm9[rnd4] || nm11[rnd7] === nm12[rnd3]) { 100 rnd7 = Math.random() * nm11.length | 0; 101 } 102 if (nTp === 4) { 103 nMs = nm7[rnd] + nm8[rnd2] + nm9[rnd4] + nm8[rnd6] + nm11[rnd7] + nm10[rnd5] + nm12[rnd3]; 104 } else { 105 nMs = nm7[rnd] + nm8[rnd2] + nm11[rnd7] + nm8[rnd6] + nm9[rnd4] + nm10[rnd5] + nm12[rnd3]; 106 } 107 } 108 testSwear(nMs); 109 }