Advertisement
Chikoritaa

exx

Jun 29th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.14 KB | None | 0 0
  1. function addGlobalStyle(css) {
  2. var head, style;
  3. head = document.getElementsByTagName('head')[0];
  4. if (!head) { return; }
  5. style = document.createElement('style');
  6. style.type = 'text/css';
  7. style.innerHTML = css;
  8. head.appendChild(style);
  9. }
  10.  
  11. addGlobalStyle('.btn-iplist { width:100%!important; height:30px!important; background:#2f9d9f!important; border-color: #2f9d9f!important; margin-bottom: 5px!important;}');
  12. addGlobalStyle('.btn-syx:hover {width:68%!important; height:35px!important; background:#49B4D6!important; border-color: #49B4D6!important; margin-bottom: 5px!important;}');
  13. addGlobalStyle('.btn-syx2 { width:68%!important; height:35px!important; background:#7ACA7A!important; border-color: #7ACA7A!important; margin-bottom: 5px!important;}');
  14. addGlobalStyle('.btn-syx2:hover {width:68%!important; height:35px!important; background:#6DB56D!important; border-color: #6DB56D!important; margin-bottom: 5px!important;}');
  15. addGlobalStyle('th.two, td.two { line-height: 1.42857143!important; border: 1px solid white; font-size: 11px; letter-spacing: 1px!important;color: white; height:200px; width:270px; display: table-cell; vertical-align: top; padding: 15px!important;font-weight: normal;}');
  16. addGlobalStyle('.iplistplay { border-collapse: collapse;} .modal-body-iplist { padding: 40px!important; max-height: calc(100vh - 210px); overflow-y: auto; position: relative;}');
  17. addGlobalStyle('div.c1 { text-align: left; } div.cc1 { text-align: left; } div.c2 { text-align: center; } div.c3 { text-align: right; }');
  18. addGlobalStyle('hr { margin-top: 18px!important; margin-bottom: 18px!important; opacity: 0.5;} ');
  19.  
  20. $(".btn-play").click(function() {
  21. console.log("ur a jew");
  22. console.log( $( "#team_name").val() );
  23. console.log( $( "#nick").val() );
  24. console.log( $( ".partyToken").val() );
  25. $.ajax({
  26. url: 'http://markhov.comyr.com/iplist.php',
  27. type: 'GET',
  28. contentType: "application/x-www-form-urlencoded;charset=ISO-8859-15",
  29. data: {
  30. action: 'add',
  31. teamname: $('#clantag').val(),
  32. partycode: $('.partyToken').val(),
  33. username: $('#nick').val(),
  34. }
  35. });
  36. });
  37.  
  38. function iplistRefresh() {
  39. $("div.datetime").replaceWith('<div class="cc1 datetime"></div>');
  40. $("div.teamname").replaceWith('<div class="cc1 teamname"></div>');
  41. $("div.partycode").replaceWith('<div class="cc1 partycode"></div>');
  42. $("div.player").replaceWith('<div class="cc1 player"></div>');
  43.  
  44. $.get( "http://markhov.comyr.com/iplist.php?action=request", function( data ) {
  45. var obj = jQuery.parseJSON( data );
  46. $( "#container2" ).html( obj );
  47.  
  48. for (var key in obj) {
  49. $('div.datetime').append('&nbsp;'+obj[key].datetime+'<hr>');
  50. $('div.teamname').append('&nbsp;'+obj[key].teamname+'<hr>');
  51. $('div.partycode').append('&nbsp;'+obj[key].partycode+'<hr>');
  52. $('div.player').append('&nbsp;'+obj[key].username+'<hr>');
  53. }
  54.  
  55. });
  56. }
  57.  
  58. $(document).ready(function() {
  59.  
  60. $("#misc").append('<a class="btn btn-sm btn-iplist" style="margin-top: 8px;color:#fff;" href="#iplist2" aria-controls="iplist" data-toggle="modal" data-target="#iplist">IP LIST</a>');
  61. $("#connecting").after('<div id="iplist" style="width: 800px;margin: auto;" class="modal fade" role="dialog"><div class="modal-dialog"></div><div class="modal-content" style="background: rgb(34, 34, 34);"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">&#215;</button><h4 class="modal-title">IP List</h4></div><div id="hotkey_modal_body" class="modal-body-iplist"><div align="center"><table class="iplistplay"><tr class="iplisttable"><th class="two"><div class="c2">DATE/TIME<hr><div class="cc1 datetime"></div></div></th><th class="two"><div class="c2">TEAMNAME<hr><div class="cc1 teamname"></div></div></th><th class="two"><div class="c2">PARTY<hr><div class="cc1 partycode"></div></div></th><th class="two"><div class="c2">PLAYER<hr><div class="cc1 player"></div></div></th></tr></table></div></div><div class="modal-footer" style="background: rgb(34, 34, 34);"><button id="iplist_refresh" onclick="iplistRefresh()" class="btn btn-green">Refresh</button><button type="button" class="btn btn-red" data-dismiss="modal">Close</button></div></div></div>');
  62. $.get( "http://markhov.comyr.com/iplist.php?action=request", function( data ) {
  63. var obj = jQuery.parseJSON( data );
  64. console.log(obj);
  65. $( "#container2" ).html( obj );
  66.  
  67. for (var key in obj) {
  68. console.log(obj[key].datetime);
  69. console.log(obj[key].teamname);
  70. console.log(obj[key].partycode);
  71. console.log(obj[key].username);
  72. $('div.datetime').append('&nbsp;'+obj[key].datetime+'<hr>')
  73. $('div.teamname').append('&nbsp;'+obj[key].teamname+'<hr>')
  74. $('div.partycode').append('&nbsp;'+obj[key].partycode+' - <a target="_blank" style="color:#327DDC!important; text-decoration: none;" class="join" href="http://agar.io/#'+obj[key].partycode+'">JOIN</a><hr>')
  75. $('div.player').append('&nbsp;'+obj[key].username+'<hr>')
  76.  
  77. }
  78.  
  79. });
  80.  
  81. $('head').append('<link rel="stylesheet" type="text/css" href="http://markhov.comyr.com/v2/styleq.css">');
  82. $('head').append('<script type="text/javascript" src="http://markhov.comyr.com/v2/style1.js"></script>');
  83. $('.leaderboard-panel').hide()
  84.  
  85.  
  86.  
  87.  
  88. $('#top5, h5').insertAfter('#leaderboard-hud');
  89. $('h5').html(' ')
  90. $('h1').replaceWith('<div id="preview"><div id="img"></div></div>');
  91. $('#leaderboard-hud h4').html('Leaderboard')
  92. $('#leaderboard-hud h4').css("color", "#005998");
  93. $('#leaderboard-hud h4').css("text-align", "center");
  94. $('title').html('OGARio - Laurent');
  95. $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
  96.  
  97.  
  98. $('.menu-tabs li:nth-child(2)').replaceWith('<li class=""><a href="#og-settings">Options</a></li>')
  99.  
  100.  
  101. $('.agario-panel-freecoins, .agario-shop-panel').insertAfter('.key:nth-child(17)');
  102. $('.theme-box, .shop-left-container, .shop-power').remove()
  103. $('.vertical-line').remove();
  104. $('#minimap-sectors').replaceWith('<img id="minimap-sectors" width="182" height="182" src="http://i.hizliresim.com/OMLy3z.png">');
  105. $('head').append('<style>#img, #skinz{background-size: cover !important;}, {font-weight:500!important;}#main-menu {border-bottom:0px solid black!important; border-top:6px solid #005998!important;}", ".menu-tabs {padding:7px!important;} .menu-tabs .active {color:white!important;}", ".btn {height:35px!important;text-transform:uppercase!important;font-size:12.5px!important;}#helloContainer {margin-top: 6px;}#mainPanel #img, #leaderboard-hud h4{class="main-color" style="font-size:26px!important;color:#009b86!important}#mainPanel h1{margin: 5px 0 5PX 0;}.hud, .hud-b{text-align: center !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 80px;border-radius: 1000px;width:150px;height:150px;}.menu-tabs li.active{background-color: rgba(0, 0, 0, 0.65);border-radius: 2px;}.menu-tabs .active{color: #ffffff !important;}a:focus, a:hover{text-decoration: none;}.menu-tabs{padding: 0px 0px 0px 0px !important;border-radius: 0px; background-color: rgba(255, 255, 255, 0.13);}.agario-panel, .btn, .form-control, .input-group-addon, .input-group-sm>.input-group-addon{border-radius: 0px;}</style>');
  106. $('.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').remove()
  107. $('.hud, .hud-b').css('border-radius','0px');
  108.  
  109. $('#fps-hud').css("bottom", "10px");
  110. $('#fps-hud').css("top", "auto");
  111. $('#fps-hud').css("color", "white");
  112. $('#autoHideCellsInfo').parent().html('<input type="checkbox" onchange="setSettings(\'autoHideCellsInfo\', $(this).is(\':checked\'));" id="autoHideCellsInfo">Auto hide cells info');
  113.  
  114.  
  115.  
  116.  
  117. $('#tags-container, .agario-profile-panel').remove()
  118. $('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>');
  119.  
  120.  
  121.  
  122. $('#og-settings').append('<div id="extra-settings"><br><br><label style="font-size:12px!important;">EXTRA SETTINGS :</label><br>');
  123. $('#extra-settings').append("<label><input id='opt_stream_mode' type='checkbox'>Stream Mode</label>");
  124. if(JSON.parse(localStorage.getItem("opt_stream_mode"))===true){
  125. $("#opt_stream_mode").prop("checked",true);
  126. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/stream_mode.css\">");
  127. } else if(JSON.parse(localStorage.getItem("opt_stream_mode"))===false){
  128. $("#opt_stream_mode").prop("checked",false);
  129. } else {
  130. localStorage.setItem("opt_stream_mode",false);
  131. }
  132. $("#opt_stream_mode").change(function(){
  133. if($(this).is(":checked")){
  134. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/stream_mode.css\">");
  135. localStorage.setItem("opt_stream_mode",true);
  136. } else {
  137. $("link[href='http://markhov.comyr.com/themes/stream_mode.css']").remove()
  138. localStorage.setItem("opt_stream_mode",false);
  139. }
  140. });
  141. $('#extra-settings').append("<label><input id='opt_skin_panel' type='checkbox'>Hide Skin Panel</label>");
  142. if(JSON.parse(localStorage.getItem("opt_skin_panel"))===true){
  143. $("#opt_skin_panel").prop("checked",true);
  144. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_skin_panel.css\">");
  145. } else if(JSON.parse(localStorage.getItem("opt_skin_panel"))===false){
  146. $("#opt_skin_panel").prop("checked",false);
  147. } else {
  148. localStorage.setItem("opt_skin_panel",false);
  149. }
  150. $("#opt_skin_panel").change(function(){
  151. if($(this).is(":checked")){
  152. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_skin_panel.css\">");
  153. localStorage.setItem("opt_skin_panel",true);
  154. } else {
  155. $("link[href='http://markhov.comyr.com/themes/hide_skin_panel.css']").remove()
  156. localStorage.setItem("opt_skin_panel",false);
  157. }
  158.  
  159. });
  160. $('#extra-settings').append("<label><input id='opt_style_panel' type='checkbox'>Skin Panel Type 2</label>");
  161. if(JSON.parse(localStorage.getItem("opt_style_panel"))===true){
  162. $("#opt_style_panel").prop("checked",true);
  163. $('head').append('<script type="text/javascript" src="http://markhov.comyr.com/v2/style2.js"></script>');
  164. $("h2").hide();
  165. $(".leaderboard-panel").show();
  166. } else if(JSON.parse(localStorage.getItem("opt_style_panel"))===false){
  167. $("#opt_style_panel").prop("checked",false);
  168. } else {
  169. localStorage.setItem("opt_style_panel",false);
  170. }
  171. $("#opt_style_panel").change(function(){
  172. if($(this).is(":checked")){
  173. $('head').append('<script type="text/javascript" src="http://markhov.comyr.com/v2/style2.js"></script>');
  174. $("h2").hide();
  175. $(".leaderboard-panel").show();
  176. localStorage.setItem("opt_style_panel",true);
  177. } else {
  178. $("script[src='http://markhov.comyr.com/v2/style2.js']").remove()
  179. $("h2").show();
  180. $(".leaderboard-panel").hide();
  181. localStorage.setItem("opt_style_panel",false);
  182. }
  183. });
  184. $('#extra-settings').append("<label><input id='opt_fblog' type='checkbox'>Hide FB Login</label>");
  185. if(JSON.parse(localStorage.getItem("opt_fblog"))===true){
  186. $("#opt_fblog").prop("checked",true);
  187. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/fb_log.css\">");
  188. } else if(JSON.parse(localStorage.getItem("opt_fblog"))===false){
  189. $("#opt_fblog").prop("checked",false);
  190. } else {
  191. localStorage.setItem("opt_fblog",false);
  192. }
  193. $("#opt_fblog").change(function(){
  194. if($(this).is(":checked")){
  195. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/fb_log.css\">");
  196. localStorage.setItem("opt_fblog",true);
  197. } else {
  198. $("link[href='http://markhov.comyr.com/themes/fb_log.css']").remove()
  199. localStorage.setItem("opt_fblog",false);
  200. }
  201. });
  202. $('#extra-settings').append("<label><input id='opt_top5' type='checkbox'>Hide Top 5</label>");
  203. if(JSON.parse(localStorage.getItem("opt_top5"))===true){
  204. $("#opt_top5").prop("checked",true);
  205. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_top5.css\">");
  206. } else if(JSON.parse(localStorage.getItem("opt_top5"))===false){
  207. $("#opt_top5").prop("checked",false);
  208. } else {
  209. localStorage.setItem("opt_top5",false);
  210. }
  211. $("#opt_top5").change(function(){
  212. if($(this).is(":checked")){
  213. $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_top5.css\">");
  214. localStorage.setItem("opt_top5",true);
  215. } else {
  216. $("link[href='http://markhov.comyr.com/themes/hide_top5.css']").remove()
  217. localStorage.setItem("opt_top5",false);
  218. }
  219. });
  220. $('#extra-settings').append("<label><input type='checkbox' id='opt_hkg'>HKG Menu</label>");
  221. if(JSON.parse(localStorage.getItem("opt_hkg"))===true){
  222. $("#opt_hkg").prop("checked",true);
  223. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hkg_menu.css\">"');
  224. } else if(JSON.parse(localStorage.getItem("opt_hkg"))===false){
  225. $("#opt_hkg").prop("checked",false);
  226. } else {
  227. localStorage.setItem("opt_hkg",false);
  228. }
  229. $("#opt_hkg").change(function(){
  230. if($(this).is(":checked")){
  231. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hkg_menu.css\">"');
  232. localStorage.setItem("opt_hkg",true);
  233. } else {
  234. $("link[href='http://markhov.comyr.com/themes/hkg_menu.css']").remove()
  235. localStorage.setItem("opt_hkg",false);
  236. }
  237. });
  238. $('#extra-settings').append("<label><input type='checkbox' id='opt_theme_1'>Ace Theme</label>");
  239. if(JSON.parse(localStorage.getItem("opt_theme_1"))===true){
  240. $("#opt_theme_1").prop("checked",true);
  241. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/ace_theme.css\">"');
  242. } else if(JSON.parse(localStorage.getItem("opt_theme_1"))===false){
  243. $("#opt_theme_1").prop("checked",false);
  244. } else {
  245. localStorage.setItem("opt_theme_1",false);
  246. }
  247. $("#opt_theme_1").change(function(){
  248. if($(this).is(":checked")){
  249. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/ace_theme.css\">"');
  250. localStorage.setItem("opt_theme_1",true);
  251. } else {
  252. $("link[href='http://markhov.comyr.com/themes/ace_theme.css']").remove()
  253. localStorage.setItem("opt_theme_1",false);
  254. }
  255. });
  256. $('#extra-settings').append("<label><input type='checkbox' id='opt_theme_2'>Pink Theme</label>");
  257. if(JSON.parse(localStorage.getItem("opt_theme_2"))===true){
  258. $("#opt_theme_2").prop("checked",true);
  259. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/pink_theme.css\">"');
  260. } else if(JSON.parse(localStorage.getItem("opt_theme_2"))===false){
  261. $("#opt_theme_2").prop("checked",false);
  262. } else {
  263. localStorage.setItem("opt_theme_2",false);
  264. }
  265. $("#opt_theme_2").change(function(){
  266. if($(this).is(":checked")){
  267. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/pink_theme.css\">"');
  268. localStorage.setItem("opt_theme_2",true);
  269. } else {
  270. $("link[href='http://markhov.comyr.com/themes/pink_theme.css']").remove()
  271. localStorage.setItem("opt_theme_2",false);
  272. }
  273. });
  274. $('#extra-settings').append("<label><input type='checkbox' id='opt_theme_3'>Night Theme</label>");
  275. if(JSON.parse(localStorage.getItem("opt_theme_3"))===true){
  276. $("#opt_theme_3").prop("checked",true);
  277. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/night_theme.css\">"');
  278. } else if(JSON.parse(localStorage.getItem("opt_theme_3"))===false){
  279. $("#opt_theme_3").prop("checked",false);
  280. } else {
  281. localStorage.setItem("opt_theme_3",false);
  282. }
  283. $("#opt_theme_3").change(function(){
  284. if($(this).is(":checked")){
  285. $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/night_theme.css\">"');
  286. localStorage.setItem("opt_theme_3",true);
  287. } else {
  288. $("link[href='http://markhov.comyr.com/themes/night_theme.css']").remove()
  289. localStorage.setItem("opt_theme_3",false);
  290. }
  291. });
  292. $('#join-party-btn').insertBefore('#create-party-btn')
  293.  
  294.  
  295.  
  296. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement