Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Manabe Madlibs (bit.ly/mnbmlibs) Cheat System
- //Made by your friend @ryandolan123
- //EDIT 6/26/14: I fixed 2 major bugs in this. It should be fine now. Enjoy!
- //To use, open up inspect element, open up the console, and paste this in
- //To perform a cheat action, hit the new "change or view!" button
- //To change the madlib to a specific different one, type the number of the madlib you want into the box and hit return
- //To view the madlib you are on, on the 2nd line of the alert it tells you which madlib you are on. Match that up with the corresponding madlib.
- var changeMadlib = document.createElement("div"); //make cheat button
- var cmText = document.createTextNode("change or view!");
- changeMadlib.appendChild(cmText);
- changeMadlib.setAttribute("style","color: white; font-size: 200%; padding: 5px 15px; display: inline-block; cursor: pointer; background-color: rgb(0, 112, 175);");
- var chunkStore = [
- ["something went wrong, hit refresh or \"change or view\" please"], //why do javascript arrays have to start at 0, lets just have a safety net instead
- ["verb","name","verb-ing","name2"],
- ["name","food","object-pronoun","verb"],
- ["verb","adjective"],
- ["reaction","verb","name"],
- ["name","human-adj","past-verb","object-pronoun"],
- ["reaction","adverb","adjective"],
- ["name","adverb","body-part","object-pronoun","his-her-its","body-part"],
- ["verb-ing"],
- ["number","plural-noun"],
- ["verb-ing","thing"],
- ["drink"],
- ["tv-show-anime"],
- ["manga-book-name"],
- ["passive-verb"],
- ["number","an-event"],
- ["social-network","thing-from-internet"],
- ["verb","name","adjective"],
- ];
- changeMadlib.onclick = function() {
- var promptMessage = "";
- promptMessage += "Thanks for using @ryandolan123's manadlibs cheater\n";
- if (typeof ml !== "undefined" && typeof ml.temp !== "undefined" && ml.temp > 0 && ml.temp < 18) {
- promptMessage += "=======The current template is number " + ml.temp + "========\n";
- } else if (typeof ml !== "undefined" && typeof ml.temp !== "undefined") {
- promptMessage += "The current template is number " + ml.temp + ", which is unfortunately not recognized by this current cheat system.";
- } else if (typeof ml !== "undefined" && typeof ml.temp === "undefined") {
- promptMessage += "The current template is number.... uh.... my sources say the template number doesn't exist. blame @potasmic. see if there's a new version of this cheat system.";
- }
- promptMessage += "1 I tried to [[verb]] [[name]], but ended up [[verb-ing]] [[name2]] instead.\n";
- promptMessage += "2 Today, [[name]] wants me to eat [[food]] but I refused, so [[object-pronoun]] [[verb]] it at me.\n";
- promptMessage += "3 Minaho wanted me to [[verb]] him. I did, and it was [[adjective]]!\n";
- promptMessage += "4 [[reaction]]! Why did you [[verb]] me, [[name]]?\n";
- promptMessage += "5 [[name]] said I was [[human-adj]], so I [[past-verb]] [[object-pronoun]].\n";
- promptMessage += "6 [[reaction]]! That was [[adverb]] [[adjective]]!\n";
- promptMessage += "7 [[name]] hit me [[adverb]] in the [[body-part]]. So I hit [[object-pronoun]] back in [[his-her-its]] [[body-part]].\n";
- promptMessage += "8 Stop [[verb-ing]] me!\n";
- promptMessage += "9 There are [[number]] [[plural-noun]] here.\n";
- promptMessage += "10 I don't have my glasses right now and it seems that I'm [[verb-ing]] a [[thing]]\n";
- promptMessage += "11 Can you give me some of your [[drink]]?\n";
- promptMessage += "12 Watching [[tv-show-anime]].";
- promptMessage += "13 Reading [[manga-book-name]].\n";
- promptMessage += "14 Feels like being [[passive-verb]]\n";
- promptMessage += "15 Guess what? It's [[number]] days until [[an-event]]\n";
- promptMessage += "16 Just logged into my [[social-network]] and the first thing I saw was [[thing-from-internet]]\n";
- promptMessage += "17 I wanted to [[verb]] but [[name]] told me that was [[adjective]].";
- var choice = prompt(promptMessage,"");
- switch(Number(choice)) {
- case undefined: //ok fine hit cancel gosh
- //case NaN: alert("Please hit the cheat button again and this time input an actual number. thanks."); //doesnt work wat
- case 0: //adadsa
- default: if (choice > 17 || choice < 1 ) {
- if (choice !== 0) {
- //alert("Please hit the cheat button again and this time use a valid number between 1 and 17.");
- }
- } else {
- //its a legit number, lets roll
- var switchtomeplz = Number(choice);
- Manadlibs = function(a) {
- console.log("yolo swag");
- a.chunks = chunkStore[switchtomeplz];
- a.temp = switchtomeplz;
- a.limit = 9999
- this.data = a;
- this.chunks = this.data.chunks;
- this.temp = this.data.temp;
- this.limit = this.data.limit;
- switchtomeplz = undefined; //dont leave a trace
- Manadlibs = function(a) { //switch back to not cheat after doing it
- this.data = a;
- this.chunks = this.data.chunks;
- this.temp = this.data.temp;
- this.limit = this.data.limit;
- }
- }
- loadTemplate(0);
- }
- }
- }
- var element = document.getElementsByClassName("container")[0];
- element.appendChild(changeMadlib);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement