Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css;
- head.appendChild(style);
- }
- addGlobalStyle('.btn-iplist { width:100%!important; height:30px!important; background:#2f9d9f!important; border-color: #2f9d9f!important; margin-bottom: 5px!important;}');
- addGlobalStyle('.btn-syx:hover {width:68%!important; height:35px!important; background:#49B4D6!important; border-color: #49B4D6!important; margin-bottom: 5px!important;}');
- addGlobalStyle('.btn-syx2 { width:68%!important; height:35px!important; background:#7ACA7A!important; border-color: #7ACA7A!important; margin-bottom: 5px!important;}');
- addGlobalStyle('.btn-syx2:hover {width:68%!important; height:35px!important; background:#6DB56D!important; border-color: #6DB56D!important; margin-bottom: 5px!important;}');
- 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;}');
- addGlobalStyle('.iplistplay { border-collapse: collapse;} .modal-body-iplist { padding: 40px!important; max-height: calc(100vh - 210px); overflow-y: auto; position: relative;}');
- addGlobalStyle('div.c1 { text-align: left; } div.cc1 { text-align: left; } div.c2 { text-align: center; } div.c3 { text-align: right; }');
- addGlobalStyle('hr { margin-top: 18px!important; margin-bottom: 18px!important; opacity: 0.5;} ');
- $(".btn-play").click(function() {
- console.log("ur a jew");
- console.log( $( "#team_name").val() );
- console.log( $( "#nick").val() );
- console.log( $( ".partyToken").val() );
- $.ajax({
- url: 'http://markhov.comyr.com/iplist.php',
- type: 'GET',
- contentType: "application/x-www-form-urlencoded;charset=ISO-8859-15",
- data: {
- action: 'add',
- teamname: $('#clantag').val(),
- partycode: $('.partyToken').val(),
- username: $('#nick').val(),
- }
- });
- });
- function iplistRefresh() {
- $("div.datetime").replaceWith('<div class="cc1 datetime"></div>');
- $("div.teamname").replaceWith('<div class="cc1 teamname"></div>');
- $("div.partycode").replaceWith('<div class="cc1 partycode"></div>');
- $("div.player").replaceWith('<div class="cc1 player"></div>');
- $.get( "http://markhov.comyr.com/iplist.php?action=request", function( data ) {
- var obj = jQuery.parseJSON( data );
- $( "#container2" ).html( obj );
- for (var key in obj) {
- $('div.datetime').append(' '+obj[key].datetime+'<hr>');
- $('div.teamname').append(' '+obj[key].teamname+'<hr>');
- $('div.partycode').append(' '+obj[key].partycode+'<hr>');
- $('div.player').append(' '+obj[key].username+'<hr>');
- }
- });
- }
- $(document).ready(function() {
- $("#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>');
- $("#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">×</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>');
- $.get( "http://markhov.comyr.com/iplist.php?action=request", function( data ) {
- var obj = jQuery.parseJSON( data );
- console.log(obj);
- $( "#container2" ).html( obj );
- for (var key in obj) {
- console.log(obj[key].datetime);
- console.log(obj[key].teamname);
- console.log(obj[key].partycode);
- console.log(obj[key].username);
- $('div.datetime').append(' '+obj[key].datetime+'<hr>')
- $('div.teamname').append(' '+obj[key].teamname+'<hr>')
- $('div.partycode').append(' '+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>')
- $('div.player').append(' '+obj[key].username+'<hr>')
- }
- });
- $('head').append('<link rel="stylesheet" type="text/css" href="http://markhov.comyr.com/v2/styleq.css">');
- $('head').append('<script type="text/javascript" src="http://markhov.comyr.com/v2/style1.js"></script>');
- $('.leaderboard-panel').hide()
- $('#top5, h5').insertAfter('#leaderboard-hud');
- $('h5').html(' ')
- $('h1').replaceWith('<div id="preview"><div id="img"></div></div>');
- $('#leaderboard-hud h4').html('Leaderboard')
- $('#leaderboard-hud h4').css("color", "#005998");
- $('#leaderboard-hud h4').css("text-align", "center");
- $('title').html('OGARio - Laurent');
- $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
- $('.menu-tabs li:nth-child(2)').replaceWith('<li class=""><a href="#og-settings">Options</a></li>')
- $('.agario-panel-freecoins, .agario-shop-panel').insertAfter('.key:nth-child(17)');
- $('.theme-box, .shop-left-container, .shop-power').remove()
- $('.vertical-line').remove();
- $('#minimap-sectors').replaceWith('<img id="minimap-sectors" width="182" height="182" src="http://i.hizliresim.com/OMLy3z.png">');
- $('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>');
- $('.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()
- $('.hud, .hud-b').css('border-radius','0px');
- $('#fps-hud').css("bottom", "10px");
- $('#fps-hud').css("top", "auto");
- $('#fps-hud').css("color", "white");
- $('#autoHideCellsInfo').parent().html('<input type="checkbox" onchange="setSettings(\'autoHideCellsInfo\', $(this).is(\':checked\'));" id="autoHideCellsInfo">Auto hide cells info');
- $('#tags-container, .agario-profile-panel').remove()
- $('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>');
- $('#og-settings').append('<div id="extra-settings"><br><br><label style="font-size:12px!important;">EXTRA SETTINGS :</label><br>');
- $('#extra-settings').append("<label><input id='opt_stream_mode' type='checkbox'>Stream Mode</label>");
- if(JSON.parse(localStorage.getItem("opt_stream_mode"))===true){
- $("#opt_stream_mode").prop("checked",true);
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/stream_mode.css\">");
- } else if(JSON.parse(localStorage.getItem("opt_stream_mode"))===false){
- $("#opt_stream_mode").prop("checked",false);
- } else {
- localStorage.setItem("opt_stream_mode",false);
- }
- $("#opt_stream_mode").change(function(){
- if($(this).is(":checked")){
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/stream_mode.css\">");
- localStorage.setItem("opt_stream_mode",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/stream_mode.css']").remove()
- localStorage.setItem("opt_stream_mode",false);
- }
- });
- $('#extra-settings').append("<label><input id='opt_skin_panel' type='checkbox'>Hide Skin Panel</label>");
- if(JSON.parse(localStorage.getItem("opt_skin_panel"))===true){
- $("#opt_skin_panel").prop("checked",true);
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_skin_panel.css\">");
- } else if(JSON.parse(localStorage.getItem("opt_skin_panel"))===false){
- $("#opt_skin_panel").prop("checked",false);
- } else {
- localStorage.setItem("opt_skin_panel",false);
- }
- $("#opt_skin_panel").change(function(){
- if($(this).is(":checked")){
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_skin_panel.css\">");
- localStorage.setItem("opt_skin_panel",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/hide_skin_panel.css']").remove()
- localStorage.setItem("opt_skin_panel",false);
- }
- });
- $('#extra-settings').append("<label><input id='opt_style_panel' type='checkbox'>Skin Panel Type 2</label>");
- if(JSON.parse(localStorage.getItem("opt_style_panel"))===true){
- $("#opt_style_panel").prop("checked",true);
- $('head').append('<script type="text/javascript" src="http://markhov.comyr.com/v2/style2.js"></script>');
- $("h2").hide();
- $(".leaderboard-panel").show();
- } else if(JSON.parse(localStorage.getItem("opt_style_panel"))===false){
- $("#opt_style_panel").prop("checked",false);
- } else {
- localStorage.setItem("opt_style_panel",false);
- }
- $("#opt_style_panel").change(function(){
- if($(this).is(":checked")){
- $('head').append('<script type="text/javascript" src="http://markhov.comyr.com/v2/style2.js"></script>');
- $("h2").hide();
- $(".leaderboard-panel").show();
- localStorage.setItem("opt_style_panel",true);
- } else {
- $("script[src='http://markhov.comyr.com/v2/style2.js']").remove()
- $("h2").show();
- $(".leaderboard-panel").hide();
- localStorage.setItem("opt_style_panel",false);
- }
- });
- $('#extra-settings').append("<label><input id='opt_fblog' type='checkbox'>Hide FB Login</label>");
- if(JSON.parse(localStorage.getItem("opt_fblog"))===true){
- $("#opt_fblog").prop("checked",true);
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/fb_log.css\">");
- } else if(JSON.parse(localStorage.getItem("opt_fblog"))===false){
- $("#opt_fblog").prop("checked",false);
- } else {
- localStorage.setItem("opt_fblog",false);
- }
- $("#opt_fblog").change(function(){
- if($(this).is(":checked")){
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/fb_log.css\">");
- localStorage.setItem("opt_fblog",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/fb_log.css']").remove()
- localStorage.setItem("opt_fblog",false);
- }
- });
- $('#extra-settings').append("<label><input id='opt_top5' type='checkbox'>Hide Top 5</label>");
- if(JSON.parse(localStorage.getItem("opt_top5"))===true){
- $("#opt_top5").prop("checked",true);
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_top5.css\">");
- } else if(JSON.parse(localStorage.getItem("opt_top5"))===false){
- $("#opt_top5").prop("checked",false);
- } else {
- localStorage.setItem("opt_top5",false);
- }
- $("#opt_top5").change(function(){
- if($(this).is(":checked")){
- $("head").append("<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hide_top5.css\">");
- localStorage.setItem("opt_top5",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/hide_top5.css']").remove()
- localStorage.setItem("opt_top5",false);
- }
- });
- $('#extra-settings').append("<label><input type='checkbox' id='opt_hkg'>HKG Menu</label>");
- if(JSON.parse(localStorage.getItem("opt_hkg"))===true){
- $("#opt_hkg").prop("checked",true);
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hkg_menu.css\">"');
- } else if(JSON.parse(localStorage.getItem("opt_hkg"))===false){
- $("#opt_hkg").prop("checked",false);
- } else {
- localStorage.setItem("opt_hkg",false);
- }
- $("#opt_hkg").change(function(){
- if($(this).is(":checked")){
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/hkg_menu.css\">"');
- localStorage.setItem("opt_hkg",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/hkg_menu.css']").remove()
- localStorage.setItem("opt_hkg",false);
- }
- });
- $('#extra-settings').append("<label><input type='checkbox' id='opt_theme_1'>Ace Theme</label>");
- if(JSON.parse(localStorage.getItem("opt_theme_1"))===true){
- $("#opt_theme_1").prop("checked",true);
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/ace_theme.css\">"');
- } else if(JSON.parse(localStorage.getItem("opt_theme_1"))===false){
- $("#opt_theme_1").prop("checked",false);
- } else {
- localStorage.setItem("opt_theme_1",false);
- }
- $("#opt_theme_1").change(function(){
- if($(this).is(":checked")){
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/ace_theme.css\">"');
- localStorage.setItem("opt_theme_1",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/ace_theme.css']").remove()
- localStorage.setItem("opt_theme_1",false);
- }
- });
- $('#extra-settings').append("<label><input type='checkbox' id='opt_theme_2'>Pink Theme</label>");
- if(JSON.parse(localStorage.getItem("opt_theme_2"))===true){
- $("#opt_theme_2").prop("checked",true);
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/pink_theme.css\">"');
- } else if(JSON.parse(localStorage.getItem("opt_theme_2"))===false){
- $("#opt_theme_2").prop("checked",false);
- } else {
- localStorage.setItem("opt_theme_2",false);
- }
- $("#opt_theme_2").change(function(){
- if($(this).is(":checked")){
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/pink_theme.css\">"');
- localStorage.setItem("opt_theme_2",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/pink_theme.css']").remove()
- localStorage.setItem("opt_theme_2",false);
- }
- });
- $('#extra-settings').append("<label><input type='checkbox' id='opt_theme_3'>Night Theme</label>");
- if(JSON.parse(localStorage.getItem("opt_theme_3"))===true){
- $("#opt_theme_3").prop("checked",true);
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/night_theme.css\">"');
- } else if(JSON.parse(localStorage.getItem("opt_theme_3"))===false){
- $("#opt_theme_3").prop("checked",false);
- } else {
- localStorage.setItem("opt_theme_3",false);
- }
- $("#opt_theme_3").change(function(){
- if($(this).is(":checked")){
- $('head').append('"<link rel=\"stylesheet\" href=\"http://markhov.comyr.com/themes/night_theme.css\">"');
- localStorage.setItem("opt_theme_3",true);
- } else {
- $("link[href='http://markhov.comyr.com/themes/night_theme.css']").remove()
- localStorage.setItem("opt_theme_3",false);
- }
- });
- $('#join-party-btn').insertBefore('#create-party-btn')
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement