Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2016
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.23 KB | None | 0 0
  1. $(document).ready(function() {
  2.  
  3.  
  4. $('h1').replaceWith('<div id="preview"><div id="img"></div></div>');
  5. $('#leaderboard-hud h4').html('Leaderboard');
  6. $( "h4" ).replaceWith('<h4 class="main-color">KWx Public</h4>');
  7. $('title').html('KWx');
  8. $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
  9. $('.leaderboard-panel').html('<style>.leaderboard-panel{width: 252px;height: 597px;}#skinz{display: inline-block;-webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75); -moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75); box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75);cursor:pointer;width:99px;height:99px;maRgin:5px;border-radius:100000000px;}</style> <div id="skinz" style="opacity: 1;" class="1"></div> <div id="skinz" style="opacity: 1;" class="2"></div> <div id="skinz" style="opacity: 1;" class="3"></div> <div id="skinz" style="opacity: 1;" class="4"></div> <div id="skinz" style="opacity: 1;" class="5"></div> <div id="skinz" style="opacity: 1;" class="6"></div> <div id="skinz" style="opacity: 1;" class="7"></div> <div id="skinz" style="opacity: 1;" class="8"></div> <div id="skinz" style="opacity: 1;" class="9"></div> <div id="skinz" style="opacity: 1;" class="10"</div>');
  10.  
  11. for (var i = 1; i < 11; i++) {
  12. if (localStorage.getItem('profile'+i) === null){
  13. localStorage.setItem('profile'+i, null);
  14. }
  15. }
  16.  
  17.  
  18. $('.1,.2,.3,.4,.5,.6,.7,.8,.9,.10').on('click',function() {
  19. var dd = $(this).attr('class');
  20. var skinzz = JSON.parse(localStorage["profile"+dd]);
  21. localStorage.setItem('activeprofile', dd);
  22. $('#clantag').val(skinzz[0]);
  23. $('#nick').val(skinzz[1]);
  24. $('#skin').val(skinzz[2]);
  25. $('#mainPanel #img').css("opacity","0");
  26. $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
  27. $('#mainPanel #img').css("opacity","1");
  28.  
  29.  
  30. var p = localStorage.getItem('activeprofile');
  31. var profile1 = new Array();
  32. profile1[0] = $('#clantag').val();
  33. profile1[1] = $('#nick').val();
  34. profile1[2] = $('#skin').val();
  35. localStorage["profile"+p] = JSON.stringify(profile1);
  36.  
  37. });
  38.  
  39.  
  40. window.setProfile = function(x) {
  41. var f = localStorage.getItem('activeprofile');
  42. if(x === 0) f--;
  43. if(x === 1) f++;
  44. if(f < 1) f = 10;
  45. if(f > 10) f = 1;
  46. localStorage.setItem('activeprofile', f);
  47.  
  48.  
  49. var data = JSON.parse(localStorage["profile"+f]);
  50. $('#clantag').val(data[0]);
  51. $('#nick').val(data[1]);
  52. $('#skin').val(data[2]);
  53. $('#mainPanel #img').css("opacity","0");
  54. $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
  55. $('#mainPanel #img').css("opacity","1");
  56. };
  57.  
  58.  
  59.  
  60. $('#clantag, #skin, #nick').on("input", function(){
  61. $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
  62. var p = localStorage.getItem('activeprofile');
  63. var profile1 = new Array();
  64. profile1[0] = $('#clantag').val();
  65. profile1[1] = $('#nick').val();
  66. profile1[2] = $('#skin').val();
  67. localStorage["profile"+p] = JSON.stringify(profile1);
  68. for (var i = 1; i < 11; i++) {
  69. var skinz = JSON.parse(localStorage["profile"+i]);
  70.  
  71. if (skinz !== null) {
  72. $('.'+i).css("background","url('"+skinz[2]+"')");
  73. }
  74.  
  75.  
  76. }
  77. });
  78.  
  79. $('.agario-panel-freecoins, .agario-shop-panel').insertBefore('#tags-container');
  80. $('.vertical-line').remove();
  81. $('#minimap-sectors').replaceWith('<img id="minimap-sectors" width="182" height="182" src="http://i.imgur.com/5VLl2UA.png">');
  82. $('head').append('<style>.shop-power{float:right;}.agario-panel-freecoins, .agario-panel-gifting, .agario-shop-panel{width:100%;}#img, #skinz{background-size: cover !important;}#helloContainer{margin-top: -15px;}#mainPanel #img, #skinz{ -webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75); -moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75); box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.75);}#minimap-hud{border: 1px solid rgba(0, 0, 0, 0.15);}.hideskin{backgRound-coloR:#d43f3a !important;border-coloR:#d43f3a !important;cursor: pointer;}.showskin{cursor: pointer;background-color: #449d44 !important;border-color: #449d44 !important;}.btn-info{ color: #fff !important; background-color: #428bca !important; border-color: #357ebd !important;}#helloContainer{opacity: 0.98;} #leaderboard-hud h4{font-size:27px;}#mainPanel h1{margin: 5px 0 5PX 0;}.hud, .hud-b{text-align: left !important;}#leaderboard-info{margin-top: 5px;}#main-menu{border-bottom:none !important; }.ogario-yt-panel, #ogario-ad, #version{display:none !important;}.btn-group-justified>.btn, .btn-group-justified>.btn-group{background: rgb(16, 16, 16);color: #adadad;border-color: #1e1d21;}.input-group-addon{background-color: rgba(255, 255, 255, 0.15);border: rgba(255, 255, 255, 0.15);}#mainPanel #img{transition: opacity .15s;margin: 0 60px;border-radius: 1000px;width:200px;height:200px;}.menu-tabs li.active{background-color: rgba(0, 0, 0, 0.65);border-radius: 2px;}.menu-tabs .active{color: #87c0d8 !important;}a:focus, a:hover{text-decoration: none;}.menu-tabs{padding: 6px 22px 6px 25px !important;border-radius: 2px; background-color: rgba(255, 255, 255, 0.13);}.agario-panel, .btn, .form-control, .input-group-addon, .input-group-sm>.input-group-addon{border-radius: 2px;} .showskin, .btn-warning, .btn-success{background-color: #35a7a5 !important; border-color: #35a7a5 !important;}.btn-danger, .hideskin{backgRound-coloR: #d43a66 !important;border-coloR: #d43a66 !important;} .btn-info.active, .btn-info.focus, .btn-info:active, .btn-info:focus, .btn-info:hover, .open>.dropdown-toggle.btn-info{background-color: #2d6ca1 !important;border-color: #2d6ca1 !important;} .btn-danger.active, .btn-danger.focus, .btn-danger:active, .btn-danger:focus, .btn-danger:hover, .open>.dropdown-toggle.btn-danger, .hideskin:hover{ background-color: #af2f53 !important;border-color: #af2f53 !important;} .btn-shop, .btn-shop:active, .btn-shop:disabled{background-color: #32a5a7 !important;border-color: #2f9d9f !important;} .btn-warning.active, .btn-warning.focus, .btn-warning:active, .btn-warning:focus, .btn-warning:hover, .open>.dropdown-toggle.btn-warning, .showskin:hover, .btn-success:hover{background-color: #29878a !important;border-color: #29878a !important;}.agario-panel{background-color: #1a1b25;}.agario-panel input, .agario-panel select{background-color: rgba(255, 255, 255, 0.15);}</style>');
  83. $('.party-panel, .agario-party, .agario-party-0, .agario-party-1, .agario-party-2, .agario-party-3, .agario-party-4, .agario-party-5, .agario-party-6, .agario-panel-gifting, .agario-profile-panel').remove();
  84. $('.hud, .hud-b').css('border-radius','0px');
  85. $('h2').remove();
  86. $('#fps-hud').css("bottom", "10px");
  87. $('#fps-hud').css("top", "auto");
  88. $('#autoHideCellsInfo').parent().html('<input type="checkbox" onchange="setSettings(\'autoHideCellsInfo\', $(this).is(\':checked\'));" id="autoHideCellsInfo">Auto hide cells info');
  89.  
  90. $('head').append('<script>function hideUrl() {$("head").append(\'<style>#skin {text-indent: -999999px!important;}</style>\'); $(".hideskin").replaceWith(\'<span class="input-group-addon showskin" onclick="showUrl()"><img src="http://i.imgur.com/DKZXxbz.png" width="20px"/></span>\'); localStorage.setItem("S_skin_url","hidden"); } function showUrl() {$("head").append(\'<style>#skin {text-indent: 0px!important;}</style>\'); $(".showskin").replaceWith(\'<span class="input-group-addon hideskin" onclick="hideUrl()"><img src="http://i.imgur.com/DKZXxbz.png" width="20px"/></span>\'); localStorage.setItem("S_skin_url","shown"); } if (localStorage.getItem("S_skin_url") == "hidden") {$("head").append(\'<style>#skin {text-indent: -999999px!important;}</style>\'); $(".hideskin").replaceWith(\'<span class="input-group-addon showskin" onclick="showUrl()"><img src="http://i.imgur.com/DKZXxbz.png" width="20px"/></span>\'); } else {$("head").append(\'<style>#skin {text-indent: 0px!important;}</style>\'); } $(\'#mainPanel .input-group\').append(\'<span class="input-group-addon hideskin" onclick="hideUrl()"><img src="http://i.imgur.com/DKZXxbz.png" width="20px"/></span>\');</script>')
  91.  
  92.  
  93. var f = localStorage.getItem('activeprofile');
  94. var data = JSON.parse(localStorage["profile"+f]);
  95. $('#clantag').val(data[0]);
  96. $('#nick').val(data[1]);
  97. $('#skin').val(data[2]);
  98. $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
  99.  
  100. $('#overlays').prepend('<style>#lolhi{opacity:0;}#lolhi:hover{opacity:0.95;}</style><div id="lolhi" style=" background: #9c2556; width: 500px; height: 300px; bottom: 35px; right: 35px; position: fixed; border-radius: 15px; box-shadow: 0px 0px 25px 0px #9c2556; padding: 70px; font-weight: 600; color: white; transition: all .3s; ">Vanilla skins/ Mass boosts/ XP boosts are in the settings.<br>Any suggestions/ feedback are welcome in the feedback section in Greasyfork.<br>Enjoy :)<br><br><br><script src="https://apis.google.com/js/platform.js"></script> <div class="g-ytsubscribe" data-channelid="UCuvYrid9mlRZ_ZW-eNM7o7w" data-layout="full" data-count="default"></div></div>');
  101. $('#minimap-sectors').replaceWith('<img id="minimap-sectors" width="182" height="182" src="http://i.imgur.com/5VLl2UA.png">');
  102.  
  103. for (var i = 1; i < 11; i++) {
  104. var skinz = JSON.parse(localStorage["profile"+i]);
  105.  
  106. if (skinz !== null) {
  107. $('.'+i).css("background","url('"+skinz[2]+"')");
  108. }
  109.  
  110.  
  111. }
  112.  
  113.  
  114. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement