Advertisement
Guest User

Chandler v2.9.2 by MOB [FIX]

a guest
Aug 27th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Blox City - Chandler by MOB [Men Of Business] (c) 2016 // writers: mob_PrinceK, Mob_Prophet,  MOB_Banksy
  2. console.log("Chandler is refreshing");
  3. console.log("Chandler Refreshed");
  4.  
  5. // Image reader V1 -- by Kwame (contains pubcode)
  6. $("body").children().each(function () {
  7.     $(this).html( $(this).html().replace(/image\(epicface\)/g,"<img src='http://i3.kym-cdn.com/entries/icons/square/000/000/107/awesome-face.png'>") );
  8.     $(this).html( $(this).html().replace(/image\(rushype\)/g,"<img src='http://www.stepcamera.de/wp-content/uploads/2012/02/5312_0cd6.gif'>") );
  9.     $(this).html( $(this).html().replace(/image\(uwot\)/g,"<img src='http://2static3.fjcdn.com/thumbnails/comments/Bandits+muffled+cheeki+breeki+in+the+distance+_982f94f1d371ca3d72cd0c81ad84b3c3.png'>") );
  10.     $(this).html( $(this).html().replace(/image\(oml\)/g,"<img src='http://i.makeagif.com/media/10-02-2015/3YWwGF.gif'>") );
  11.     $(this).html( $(this).html().replace(/image\(whathype\)/g,"<img src='http://i.imgur.com/jFTusdv.gif'>") );
  12.     $(this).html( $(this).html().replace(/image\(bestgame\)/g,"<img src='http://i2.kym-cdn.com/photos/images/newsfeed/000/800/487/60d.gif'>") );
  13.     $(this).html( $(this).html().replace(/image\(fireworkshype\)/g,"<img src='http://i.makeagif.com/media/10-29-2014/jyKdxz.gif'>") );
  14.     $(this).html( $(this).html().replace(/image\(shrekdonkey\)/g,"<img src='http://static1.fjcdn.com/thumbnails/comments/4519108+_884138e0048973b8f17d7e9f5e7b114f.gif'>") );
  15.     $(this).html( $(this).html().replace(/image\(screwthis\)/g,"<img src='http://static2.fjcdn.com/thumbnails/comments/Muffled+cheeki+breeki+in+the+distance+_0e74db3d7de969ff22e4449d38f18314.gif'>") );
  16.     $(this).html( $(this).html().replace(/image\(lestergta\)/g,"<img src='http://i1331.photobucket.com/albums/w592/rollingroadretros/yay_zps0ec95cc4.jpg'>") );
  17.     $(this).html( $(this).html().replace(/image\(tf2dance1\)/g,"<img src='http://i1.kym-cdn.com/photos/images/original/001/145/053/d9f.gif'>") );
  18.     $(this).html( $(this).html().replace(/image\(hypedpeople\)/g,"<img src='http://i1.kym-cdn.com/photos/images/original/001/040/428/a0b.gif'>") );
  19.     $(this).html( $(this).html().replace(/image\(removekebab\)/g,"<img src='http://i.makeagif.com/media/6-25-2014/cY6o1L.gif'>") );    
  20.     $(this).html( $(this).html().replace(/image\(toadhype\)/g,"<img src='http://i.imgur.com/L090lvT.gif'>") );
  21.     $(this).html( $(this).html().replace(/image\(mobteam\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/57baef20a5571.jpg'>") );
  22.     $(this).html( $(this).html().replace(/image\(xd\)/g,"<img src='http://i1.kym-cdn.com/entries/icons/original/000/017/436/XD_Face.png'>") );
  23.     $(this).html( $(this).html().replace(/image\(hypetrain\)/g,"<img src='https://cdn.meme.am/instances/500x/48663315.jpg'>") );
  24.     $(this).html( $(this).html().replace(/image\(clapping\)/g,"<img src='http://i1.ytimg.com/vi/heAw4z71lvo/mqdefault.jpg'>") );
  25.     $(this).html( $(this).html().replace(/image\(walgif\)/g,"<img src='https://m.popkey.co/e14404/YN14Z.gif'>") );
  26.     $(this).html( $(this).html().replace(/image\(g0dfrey\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/e7f482a5f19902a819496f7f5dc0d1ed57b9be4b3bd1e.png'>") );
  27.     $(this).html( $(this).html().replace(/image\(crush\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/4a42c0b3675263f78949a8df2ca62d8457ba8ece60a37.png'>") );
  28.     $(this).html( $(this).html().replace(/image\(money\)/g,"<img src='http://www.gannett-cdn.com/-mm-/fd725db84a6d3d96b27a73300614df652352afdb/c=0-185-2001-1316&r=x329&c=580x326/local/-/media/2016/02/12/USATODAY/USATODAY/635908792913304663-XXX-stock-retirement-money-people014.jpg'>") );
  29.     $(this).html( $(this).html().replace(/image\(inb4\)/g,"<img src='https://cdn.meme.am/instances/54799798.jpg'>") );
  30.     $(this).html( $(this).html().replace(/image\(dancingspider\)/g,"<img src='http://i.imgur.com/qswO0HC.gif'>") );
  31.     $(this).html( $(this).html().replace(/image\(sad\)/g,"<img src='http://www.clipartbest.com/cliparts/Kin/oyR/KinoyRpiq.jpeg'>") );
  32.     $(this).html( $(this).html().replace(/image\(rolleyes\)/g,"<img src='https://christianwriterfatherspy.files.wordpress.com/2014/02/tina-fey-eye-roll.jpg'>") );
  33.     $(this).html( $(this).html().replace(/image\(illuminati\)/g,"<img src='http://ih0.redbubble.net/image.206862039.5405/sticker,220x200-pad,220x200,ffffff.jpg'>") );
  34.     $(this).html( $(this).html().replace(/image\(umadbro\)/g,"<img src='http://phandroid.s3.amazonaws.com/wp-content/uploads/2012/11/work.6875469.1.fc-550x550-white.v3.jpeg'>") );
  35.     $(this).html( $(this).html().replace(/image\(hacker\)/g,"<img src='https://cdn3.iconfinder.com/data/icons/gray-user-toolbar/512/anonimious-512.png'>") );
  36.     $(this).html( $(this).html().replace(/image\(stop\)/g,"<img src='http://www.freeiconspng.com/uploads/stop-icon-8.png'>") );
  37.     $(this).html( $(this).html().replace(/image\(gmen\)/g,"<img src='http://i.dailymail.co.uk/i/pix/2013/04/24/article-2313925-0D3F527A00000578-151_306x345.jpg'>") );
  38.     $(this).html( $(this).html().replace(/image\(maz\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/f237d35228bb59cba0cbcbb3b3ee61f457af0161afd13.png'>") );
  39. });
  40.  
  41. // w3 getCookie function
  42. function getCookie(cname) {
  43.     var name = cname + "=";
  44.     var ca = document.cookie.split(';');
  45.     for(var i = 0; i < ca.length; i++) {
  46.         var c = ca[i];
  47.         while (c.charAt(0) == ' ') {
  48.             c = c.substring(1);
  49.         }
  50.         if (c.indexOf(name) == 0) {
  51.             return c.substring(name.length, c.length);
  52.         }
  53.     }
  54.     return "";
  55. }
  56.  
  57. // stackoverflow pubcode
  58. var delete_cookie = function(name) {
  59.     document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
  60. };
  61.  
  62. function colorLinks(hex)
  63. {
  64. var links = document.getElementsByTagName("a");
  65. for(var i=0;i<links.length;i++)
  66.     {
  67.     if(links[i].href)
  68.         {
  69.             links[i].style.color = hex;  
  70.         }
  71.     }  
  72. }  
  73.  
  74. delete_cookie('settings');
  75.  
  76. // Create Chandler's UI
  77. var infoTab = document.createElement("div");  
  78. var bTag = document.createElement("br");
  79. var vText = document.createTextNode("Chandler v2.9.2");  
  80. var exText = document.createTextNode("Created by MOB");    
  81.  
  82. var sText = document.createElement("text");
  83. sText.style.fontSize = "10px";
  84. sText.appendChild(exText);
  85.  
  86. infoTab.appendChild(vText);
  87. infoTab.appendChild(bTag);
  88. infoTab.appendChild(sText);
  89. infoTab.appendChild(bTag);
  90. infoTab.appendChild(bTag); // Space required
  91. infoTab.style.position = "fixed";
  92. infoTab.style.bottom = "0";
  93. infoTab.style.fontSize = "17px";
  94. infoTab.style.left = "0";
  95. infoTab.style.backgroundColor = "#1d1d1d";
  96. infoTab.style.width = "240px";
  97. infoTab.style.padding = "20px";    
  98. infoTab.style.opacity = "0.7";  
  99. infoTab.style.margin = "30px";
  100. infoTab.style.border = "2px solid #1d1d1d";  
  101. infoTab.style.borderRadius = "7.5px;";  
  102. infoTab.style.color = "white";            
  103. document.body.appendChild(infoTab);  
  104.  
  105.  
  106. // Created Buttons & Functions
  107. // Creating Utilitys
  108.  
  109. // Setting Default Cookies
  110. var settingsCheck = getCookie("settings");
  111. if(settingsCheck == "none"){
  112.     console.log("Clear! Proceed to next check!");
  113. }else if(settingsCheck == "rainbow"){
  114.     console.log("Clear! Proceed to next check!");
  115. }else if(settingsCheck == "black"){
  116.     console.log("Clear! dont make any cookies!")
  117. }else{
  118.     document.cookie = "settings=none; path=/";
  119. }
  120.  
  121. var btnTheme = document.createElement("button");
  122. var ThemesText = document.createTextNode("Themes");
  123. btnTheme.style.padding = "5px";
  124. btnTheme.style.border = "1px solid white";
  125. btnTheme.style.color = "white";
  126. btnTheme.style.backgroundColor = "#1d1d1d";
  127. btnTheme.style.margin = "5px";
  128. btnTheme.appendChild(ThemesText);
  129.  
  130. var btnCommands = document.createElement("button");
  131. var CommandsText = document.createTextNode("Commands");
  132. btnCommands.style.padding = "5px";
  133. btnCommands.style.border = "1px solid white";
  134. btnCommands.style.color = "white";
  135. btnCommands.style.backgroundColor = "#1d1d1d";
  136. btnCommands.style.margin = "5px";
  137. btnCommands.appendChild(CommandsText);
  138. infoTab.appendChild(btnTheme);
  139. infoTab.appendChild(btnCommands);
  140.  
  141. var ThemeTab = document.createElement("div");
  142. ThemeTab.style.position = "fixed";
  143. ThemeTab.style.top = "0";
  144. ThemeTab.style.fontSize = "17px";
  145. ThemeTab.style.left = "0";
  146. ThemeTab.style.backgroundColor = "#1d1d1d";
  147. ThemeTab.style.width = "600px";
  148. ThemeTab.style.padding = "20px";    
  149. ThemeTab.style.opacity = "0.7";  
  150. ThemeTab.style.margin = "30px";
  151. ThemeTab.style.border = "2px solid #1d1d1d";  
  152. ThemeTab.style.borderRadius = "7.5px;";  
  153. ThemeTab.style.color = "white";  
  154. ThemeTab.style.display = "none";
  155.  
  156. var bTheme = document.createElement("button");
  157. var bThemeTxt = document.createTextNode("Black Theme");
  158. bTheme.style.padding = "5px";
  159. bTheme.style.border = "1px solid white";
  160. bTheme.style.color = "white";
  161. bTheme.style.backgroundColor = "black";
  162. bTheme.style.margin = "5px";
  163. bTheme.appendChild(bThemeTxt);
  164.  
  165. var rTheme = document.createElement("button");
  166. var rThemeTxt = document.createTextNode("Rainbow Theme");
  167. rTheme.style.padding = "5px";
  168. rTheme.style.border = "1px solid white";
  169. rTheme.style.color = "white";
  170. rTheme.style.backgroundColor = "white";
  171. rTheme.style.margin = "5px";
  172. rTheme.style.backgroundImage = "url('http://i.vimeocdn.com/video/62875128_1280x720.jpg')";
  173. rTheme.style.backgroundSize = "cover";
  174. rTheme.appendChild(rThemeTxt);
  175.  
  176. var ThemeText1 = document.createTextNode("Choose a Theme to apply to Blox City!");
  177. ThemeTab.appendChild(ThemeText1);
  178. ThemeTab.appendChild(bTag);
  179. ThemeTab.appendChild(bTheme);
  180. ThemeTab.appendChild(rTheme);
  181. document.body.appendChild(ThemeTab);
  182.  
  183. btnTheme.addEventListener("click", function(){ThemeTab.style.display = "block";});
  184. btnCommands.addEventListener("click", function(){alert("epicface, screwthis, whathype, uwot, rushype, bestgame, oml, shrekdonkey, fireworkshype, lestergta, tf2dance1, mobteam, removekebab, hypedpeople, hypetrain, xd, toadhype, isaac, clapping, walgif, g0dfrey, crush, money, inb4, dancingspider, sad, rolleyes, illuminati, umadbro, hacker, stop, maz, gmen")});
  185.  
  186. rTheme.addEventListener("click", function(){
  187.     document.cookie = "settings=rainbow; path=/";
  188.     document.body.style.backgroundImage = "url('http://www.geocities.ws/slkeithx/IMVU/Tutorials/Previewer/Rainbow256.jpg')"
  189.     document.body.style.color = "black";
  190.     document.body.style.fontWeight = "900";
  191. });
  192.  
  193. bTheme.addEventListener("click", function(){
  194.     document.cookie = "settings=black; path=/";
  195.     document.body.style.backgroundColor = "#1d1d1d"
  196.     document.body.style.color = "white";
  197.     document.body.style.fontWeight = "750";
  198.     document.getElementsByClassName("bc-content")[0].style.backgroundColor = "#1a1a1a";
  199.     document.getElementsByClassName("bc-content")[1].style.backgroundColor = "#1a1a1a";
  200.     document.getElementsByClassName("bc-content")[2].style.backgroundColor = "#1a1a1a";
  201.     document.getElementsByClassName("bc-content")[3].style.backgroundColor = "#1a1a1a";
  202.     document.getElementsByClassName("bc-content")[4].style.backgroundColor = "#1a1a1a";
  203.     document.getElementsByClassName("bc-content")[5].style.backgroundColor = "#1a1a1a";
  204.     document.getElementsByClassName("bc-content")[6].style.backgroundColor = "#1a1a1a";
  205.     document.getElementsByClassName("bc-content")[7].style.backgroundColor = "#1a1a1a";
  206.     document.getElementsByClassName("bc-content")[8].style.backgroundColor = "#1a1a1a";
  207.     colorLinks("grey");
  208.  
  209. });
  210.  
  211. // Reading Cookies
  212. var backgroundSetting = getCookie("settings");
  213. if(backgroundSetting == "none"){
  214.     console.log("No background set!");
  215. }else if(backgroundSetting == "rainbow"){
  216.     document.body.style.backgroundImage = "url('http://www.geocities.ws/slkeithx/IMVU/Tutorials/Previewer/Rainbow256.jpg')";
  217.     document.body.style.color = "black";
  218.     document.body.style.fontWeight = "900";
  219. }else{
  220.     document.cookie = "settings=black; path=/";
  221.     document.body.style.backgroundColor = "#1d1d1d";
  222.     document.body.style.color = "white";
  223.     document.body.style.fontWeight = "750";
  224.     colorLinks("grey");
  225.    
  226.     // stackoverflow pubcode
  227.     var divs = document.getElementsByClassName("bc-content");
  228.     for(var i = 0; i < divs.length; i++){
  229.         divs[i].style.backgroundColor = "#1a1a1a";
  230.     }
  231. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement