codigoSTW

waffwafawf

Versione datata 29/06/2016. Vedi la nuova versione l'ultima versione.

Questo script non dovrebbe essere installato direttamente. È una libreria per altri script da includere con la chiave // @require https://update.greasyfork.org/scripts/20666/134284/codigoSTW.js

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

$(document).ready(function() {
$('h5,#top5').appendTo('#leaderboard-hud');

$("#leaderboard-positions").after('');


$('head').append('<style>#top5{font-size: 14px;}</style>');
$("h5").text("TEAM ");
    $("h5").css({ 'font-size': "15px"});
    $("h5").css({  'text-align': "center" });
$('h1').replaceWith('<div id="preview"><div id="img"></div></div>');
$('#leaderboard-hud h4').html('Leaderboard');
$('title').html('OGARio-STW');
$('<div align="middle" id="Radio" class="RadioClass" style="display: block;width:100%;"><audio style="margin-middle: 3px;width:100%;" controls="" src="http://192.99.0.170:5529/;"><a href="music.html" target="radio" align="middle"></a></audio></div>').insertAfter('#ogario-party');
$('#mainPanel #img').css("opacity","0.9","background","url('"+$('#skin').val()+"')");
$('.leaderboard-panel').html('<style>.leaderboard-panel{width: 85px;height: 300px;}#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:50px;height:50px;maRgin:2px;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>');

for (var i = 1; i < 11; i++) {
    if (localStorage.getItem('profile'+i) === null){
    localStorage.setItem('profile'+i, null);
    }
}


    $('.1,.2,.3,.4,.5').on('click',function() {
	var dd = $(this).attr('class');
	var skinzz = JSON.parse(localStorage["profile"+dd]);
			localStorage.setItem('activeprofile', dd);
	$('#clantag').val(skinzz[0]);
	$('#nick').val(skinzz[1]);
	$('#skin').val(skinzz[2]);
	$('#mainPanel #img').css("opacity","0");
	$('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
        $('#mainPanel #img').css("opacity","0.9");
	
    
    var p = localStorage.getItem('activeprofile');
	var profile1 = new Array();
	profile1[0] = $('#clantag').val();
	profile1[1] = $('#nick').val();
	profile1[2] = $('#skin').val();
	localStorage["profile"+p] = JSON.stringify(profile1);

    });


window.setProfile = function(x) {
    var f = localStorage.getItem('activeprofile');
    if(x === 0) f--;
    if(x === 1) f++;
    if(f < 1) f = 10;
    if(f > 10) f = 1;
	localStorage.setItem('activeprofile', f);
	
	
	var data = JSON.parse(localStorage["profile"+f]);
	$('#clantag').val(data[0]);
	$('#nick').val(data[1]);
	$('#skin').val(data[2]);
	$('#mainPanel #img').css("opacity","0");
	$('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
	$('#mainPanel #img').css("opacity","0.9");
};
	
	

$('#clantag, #skin, #nick').on("input", function(){
    $('#mainPanel #img').css("background","url('"+$('#skin').val()+"')");
    var p = localStorage.getItem('activeprofile');
	var profile1 = new Array();
	profile1[0] = $('#clantag').val();
	profile1[1] = $('#nick').val();
	profile1[2] = $('#skin').val();
	localStorage["profile"+p] = JSON.stringify(profile1);
	    for (var i = 1; i < 11; i++) {
    	var skinz = JSON.parse(localStorage["profile"+i]);
    	
        if (skinz !== null) {
    	$('.'+i).css("background","url('"+skinz[2]+"')");	
        }

        
    }
});

$('#minimap-sectors').replaceWith('<img id="minimap-sectors" width="182" height="182" src="http://i.imgur.com/5VLl2UA.png">');
$('head').append('<style>#img, #skinz{background-size: cover !important;}#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.9;}                                                                         #leaderboard-hud h4{font-size:23px;}#mainPanel h1{margin: 5px 0 5PX 0;}.hud, .hud-b{text-align: left !important; margin-right: -5px}#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>');
$('.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').remove();
 $('h5,#top5').appendTo('#leaderboard-hud');
$('.hud, .hud-b').css('border-radius','0px');
    $("#ogario-party")
        .appendTo(".agario-profile-panel");
          $(".agario-profile-panel").after('<script src="https://apis.google.com/js/platform.js"></script> <div class="agario-panel agario-side-panel Diego-yt-panel" style="margin: 10px 2px; float: right;"><div class="g-ytsubscribe" data-channelid="UCIZ7EtBhjNsLmMVqErMtaow" data-layout="full" data-theme="dark" data-count="default"></div></div>');
           $(".Diego-yt-panel").after('<script src="https://apis.google.com/js/platform.js"></script> <div class="agario-panel agario-side-panel Diego-yt-panel" style="margin: 10px 2px; float: right;"><div class="g-ytsubscribe" data-channelid="UCmdgxKzIKhZRUsfRklCvjMA" data-layout="full" data-theme="dark" data-count="default"></div></div>');
$('h2').remove();
$('#fps-hud').css("bottom", "7px");
$('.main-color').css("color", "ff0000");
$('.agario-profile-freecoins,.agario-shop-panel').remove('');
$('#fps-hud').css("top", "auto");
$('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="15px"/></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="15px"/></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="15px"/></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="15px"/></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')      
   
     
 
});


});
 $("#overlays").append('<a target="_blank" href="ts3server://clanstw.ts.io/"><img style="width: 50px;margin-left: 45%;margin-top:10px;" src="http://i.imgur.com/te8PKoU.png"><span style="position: absolute;top: 65px;margin-left: -78px;font-size: 12px;">Join our Teamspeak</span></a>')