Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Blox City - Chandler by MOB [Men Of Business] (c) 2016 // writers: mob_PrinceK, Mob_Prophet, MOB_Banksy
- console.log("Chandler is refreshing");
- console.log("Chandler Refreshed");
- // Image reader V1 -- by Kwame (contains pubcode)
- $("body").children().each(function () {
- $(this).html( $(this).html().replace(/image\(epicface\)/g,"<img src='http://i3.kym-cdn.com/entries/icons/square/000/000/107/awesome-face.png'>") );
- $(this).html( $(this).html().replace(/image\(rushype\)/g,"<img src='http://www.stepcamera.de/wp-content/uploads/2012/02/5312_0cd6.gif'>") );
- $(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'>") );
- $(this).html( $(this).html().replace(/image\(oml\)/g,"<img src='http://i.makeagif.com/media/10-02-2015/3YWwGF.gif'>") );
- $(this).html( $(this).html().replace(/image\(whathype\)/g,"<img src='http://i.imgur.com/jFTusdv.gif'>") );
- $(this).html( $(this).html().replace(/image\(bestgame\)/g,"<img src='http://i2.kym-cdn.com/photos/images/newsfeed/000/800/487/60d.gif'>") );
- $(this).html( $(this).html().replace(/image\(fireworkshype\)/g,"<img src='http://i.makeagif.com/media/10-29-2014/jyKdxz.gif'>") );
- $(this).html( $(this).html().replace(/image\(shrekdonkey\)/g,"<img src='http://static1.fjcdn.com/thumbnails/comments/4519108+_884138e0048973b8f17d7e9f5e7b114f.gif'>") );
- $(this).html( $(this).html().replace(/image\(screwthis\)/g,"<img src='http://static2.fjcdn.com/thumbnails/comments/Muffled+cheeki+breeki+in+the+distance+_0e74db3d7de969ff22e4449d38f18314.gif'>") );
- $(this).html( $(this).html().replace(/image\(lestergta\)/g,"<img src='http://i1331.photobucket.com/albums/w592/rollingroadretros/yay_zps0ec95cc4.jpg'>") );
- $(this).html( $(this).html().replace(/image\(tf2dance1\)/g,"<img src='http://i1.kym-cdn.com/photos/images/original/001/145/053/d9f.gif'>") );
- $(this).html( $(this).html().replace(/image\(hypedpeople\)/g,"<img src='http://i1.kym-cdn.com/photos/images/original/001/040/428/a0b.gif'>") );
- $(this).html( $(this).html().replace(/image\(removekebab\)/g,"<img src='http://i.makeagif.com/media/6-25-2014/cY6o1L.gif'>") );
- $(this).html( $(this).html().replace(/image\(toadhype\)/g,"<img src='http://i.imgur.com/L090lvT.gif'>") );
- $(this).html( $(this).html().replace(/image\(mobteam\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/57baef20a5571.jpg'>") );
- $(this).html( $(this).html().replace(/image\(xd\)/g,"<img src='http://i1.kym-cdn.com/entries/icons/original/000/017/436/XD_Face.png'>") );
- $(this).html( $(this).html().replace(/image\(hypetrain\)/g,"<img src='https://cdn.meme.am/instances/500x/48663315.jpg'>") );
- $(this).html( $(this).html().replace(/image\(clapping\)/g,"<img src='http://i1.ytimg.com/vi/heAw4z71lvo/mqdefault.jpg'>") );
- $(this).html( $(this).html().replace(/image\(walgif\)/g,"<img src='https://m.popkey.co/e14404/YN14Z.gif'>") );
- $(this).html( $(this).html().replace(/image\(g0dfrey\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/e7f482a5f19902a819496f7f5dc0d1ed57b9be4b3bd1e.png'>") );
- $(this).html( $(this).html().replace(/image\(crush\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/4a42c0b3675263f78949a8df2ca62d8457ba8ece60a37.png'>") );
- $(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'>") );
- $(this).html( $(this).html().replace(/image\(inb4\)/g,"<img src='https://cdn.meme.am/instances/54799798.jpg'>") );
- $(this).html( $(this).html().replace(/image\(dancingspider\)/g,"<img src='http://i.imgur.com/qswO0HC.gif'>") );
- $(this).html( $(this).html().replace(/image\(sad\)/g,"<img src='http://www.clipartbest.com/cliparts/Kin/oyR/KinoyRpiq.jpeg'>") );
- $(this).html( $(this).html().replace(/image\(rolleyes\)/g,"<img src='https://christianwriterfatherspy.files.wordpress.com/2014/02/tina-fey-eye-roll.jpg'>") );
- $(this).html( $(this).html().replace(/image\(illuminati\)/g,"<img src='http://ih0.redbubble.net/image.206862039.5405/sticker,220x200-pad,220x200,ffffff.jpg'>") );
- $(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'>") );
- $(this).html( $(this).html().replace(/image\(hacker\)/g,"<img src='https://cdn3.iconfinder.com/data/icons/gray-user-toolbar/512/anonimious-512.png'>") );
- $(this).html( $(this).html().replace(/image\(stop\)/g,"<img src='http://www.freeiconspng.com/uploads/stop-icon-8.png'>") );
- $(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'>") );
- $(this).html( $(this).html().replace(/image\(maz\)/g,"<img src='https://storage.googleapis.com/bloxcity-file-storage/f237d35228bb59cba0cbcbb3b3ee61f457af0161afd13.png'>") );
- });
- // w3 getCookie function
- function getCookie(cname) {
- var name = cname + "=";
- var ca = document.cookie.split(';');
- for(var i = 0; i < ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return "";
- }
- // stackoverflow pubcode
- var delete_cookie = function(name) {
- document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- };
- function colorLinks(hex)
- {
- var links = document.getElementsByTagName("a");
- for(var i=0;i<links.length;i++)
- {
- if(links[i].href)
- {
- links[i].style.color = hex;
- }
- }
- }
- delete_cookie('settings');
- // Create Chandler's UI
- var infoTab = document.createElement("div");
- var bTag = document.createElement("br");
- var vText = document.createTextNode("Chandler v2.9.2");
- var exText = document.createTextNode("Created by MOB");
- var sText = document.createElement("text");
- sText.style.fontSize = "10px";
- sText.appendChild(exText);
- infoTab.appendChild(vText);
- infoTab.appendChild(bTag);
- infoTab.appendChild(sText);
- infoTab.appendChild(bTag);
- infoTab.appendChild(bTag); // Space required
- infoTab.style.position = "fixed";
- infoTab.style.bottom = "0";
- infoTab.style.fontSize = "17px";
- infoTab.style.left = "0";
- infoTab.style.backgroundColor = "#1d1d1d";
- infoTab.style.width = "240px";
- infoTab.style.padding = "20px";
- infoTab.style.opacity = "0.7";
- infoTab.style.margin = "30px";
- infoTab.style.border = "2px solid #1d1d1d";
- infoTab.style.borderRadius = "7.5px;";
- infoTab.style.color = "white";
- document.body.appendChild(infoTab);
- // Created Buttons & Functions
- // Creating Utilitys
- // Setting Default Cookies
- var settingsCheck = getCookie("settings");
- if(settingsCheck == "none"){
- console.log("Clear! Proceed to next check!");
- }else if(settingsCheck == "rainbow"){
- console.log("Clear! Proceed to next check!");
- }else if(settingsCheck == "black"){
- console.log("Clear! dont make any cookies!")
- }else{
- document.cookie = "settings=none; path=/";
- }
- var btnTheme = document.createElement("button");
- var ThemesText = document.createTextNode("Themes");
- btnTheme.style.padding = "5px";
- btnTheme.style.border = "1px solid white";
- btnTheme.style.color = "white";
- btnTheme.style.backgroundColor = "#1d1d1d";
- btnTheme.style.margin = "5px";
- btnTheme.appendChild(ThemesText);
- var btnCommands = document.createElement("button");
- var CommandsText = document.createTextNode("Commands");
- btnCommands.style.padding = "5px";
- btnCommands.style.border = "1px solid white";
- btnCommands.style.color = "white";
- btnCommands.style.backgroundColor = "#1d1d1d";
- btnCommands.style.margin = "5px";
- btnCommands.appendChild(CommandsText);
- infoTab.appendChild(btnTheme);
- infoTab.appendChild(btnCommands);
- var ThemeTab = document.createElement("div");
- ThemeTab.style.position = "fixed";
- ThemeTab.style.top = "0";
- ThemeTab.style.fontSize = "17px";
- ThemeTab.style.left = "0";
- ThemeTab.style.backgroundColor = "#1d1d1d";
- ThemeTab.style.width = "600px";
- ThemeTab.style.padding = "20px";
- ThemeTab.style.opacity = "0.7";
- ThemeTab.style.margin = "30px";
- ThemeTab.style.border = "2px solid #1d1d1d";
- ThemeTab.style.borderRadius = "7.5px;";
- ThemeTab.style.color = "white";
- ThemeTab.style.display = "none";
- var bTheme = document.createElement("button");
- var bThemeTxt = document.createTextNode("Black Theme");
- bTheme.style.padding = "5px";
- bTheme.style.border = "1px solid white";
- bTheme.style.color = "white";
- bTheme.style.backgroundColor = "black";
- bTheme.style.margin = "5px";
- bTheme.appendChild(bThemeTxt);
- var rTheme = document.createElement("button");
- var rThemeTxt = document.createTextNode("Rainbow Theme");
- rTheme.style.padding = "5px";
- rTheme.style.border = "1px solid white";
- rTheme.style.color = "white";
- rTheme.style.backgroundColor = "white";
- rTheme.style.margin = "5px";
- rTheme.style.backgroundImage = "url('http://i.vimeocdn.com/video/62875128_1280x720.jpg')";
- rTheme.style.backgroundSize = "cover";
- rTheme.appendChild(rThemeTxt);
- var ThemeText1 = document.createTextNode("Choose a Theme to apply to Blox City!");
- ThemeTab.appendChild(ThemeText1);
- ThemeTab.appendChild(bTag);
- ThemeTab.appendChild(bTheme);
- ThemeTab.appendChild(rTheme);
- document.body.appendChild(ThemeTab);
- btnTheme.addEventListener("click", function(){ThemeTab.style.display = "block";});
- 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")});
- rTheme.addEventListener("click", function(){
- document.cookie = "settings=rainbow; path=/";
- document.body.style.backgroundImage = "url('http://www.geocities.ws/slkeithx/IMVU/Tutorials/Previewer/Rainbow256.jpg')"
- document.body.style.color = "black";
- document.body.style.fontWeight = "900";
- });
- bTheme.addEventListener("click", function(){
- document.cookie = "settings=black; path=/";
- document.body.style.backgroundColor = "#1d1d1d"
- document.body.style.color = "white";
- document.body.style.fontWeight = "750";
- document.getElementsByClassName("bc-content")[0].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[1].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[2].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[3].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[4].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[5].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[6].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[7].style.backgroundColor = "#1a1a1a";
- document.getElementsByClassName("bc-content")[8].style.backgroundColor = "#1a1a1a";
- colorLinks("grey");
- });
- // Reading Cookies
- var backgroundSetting = getCookie("settings");
- if(backgroundSetting == "none"){
- console.log("No background set!");
- }else if(backgroundSetting == "rainbow"){
- document.body.style.backgroundImage = "url('http://www.geocities.ws/slkeithx/IMVU/Tutorials/Previewer/Rainbow256.jpg')";
- document.body.style.color = "black";
- document.body.style.fontWeight = "900";
- }else{
- document.cookie = "settings=black; path=/";
- document.body.style.backgroundColor = "#1d1d1d";
- document.body.style.color = "white";
- document.body.style.fontWeight = "750";
- colorLinks("grey");
- // stackoverflow pubcode
- var divs = document.getElementsByClassName("bc-content");
- for(var i = 0; i < divs.length; i++){
- divs[i].style.backgroundColor = "#1a1a1a";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement