Greasy Fork is available in English.

MaSt Play Mods Useful And Powerful!

MODS FOR AGAR & OTHER !

// ==UserScript==
// @name         MaSt Play Mods Useful And Powerful!
// @namespace    MaSt Play Mods
// @version      0.1
// @description  MODS FOR AGAR & OTHER !
// @author       MaSt
// @match        http://agar.io/*
// @match        http://agarly.com/*
// @match        http://gota.io/*
// @grant        none
// ==/UserScript==
window.onload = function() {
    $("h2").replaceWith('<h2 style="font-family: Ubuntu; font-size: 200%;">MaSt Agar.io</h2>');
    $("h4").replaceWith('<h4 style="font-family: Ubuntu;">Partie</h4>');
    $("title").replaceWith('<title>MaSt Agar.io</title>');
    $("h1").replaceWith('<h1>MaSt Agar.io</h1>');
    option_show_mass = true;
    option_skip_stats = true;
    option_dark_theme = false;
    $( "#controller_alert_connected" ).after("<img src='http://www.wallpapersxl.com/wallpapers/1920x1080/dot/158974/dot-dots-pixels-tagged-abstract-158974.jpg' style='opacity: 0.5;'>");
    $( "#tags-container" ).replaceWith("<div><select id='nick' class='form-control' onchange='location = this.options[this.selectedIndex].value;' style='width: 146,5px; color: black; background-color: white;'><option>Other games !</option><option value='//slither.io/'>Slither.io</option><option value='//diep.io/'>Diep.io</option><option value='//limax.io/'>Limax.io</option><option value='//vanar.io/'>Vanar.io</option><option value='//wings.io/'>Wings.io</option></select></div>");
    $( ".agario-promo" ).replaceWith("<div class='agario-promo' style='padding: 0px; width: 293px; height: 366px; position: relative; background-image: url(img/promo_hoc.png);'><iframe src='//discordapp.com/widget?id=199815915926323200&theme=white' width='350' height='500' allowtransparency='true' frameborder='0'></iframe></div>");
    $( "#nick" ).after("<div><select id='nick' class='form-control' onchange='location = this.options[this.selectedIndex].value;' style='float: right; width: 146,5px; color: black; background-color: white;'><option>Server !</option><option value='//agar.io/?ip=mastclan.servehttp.com:443'>MaSt Clan</option><option value='//agar.io/?ip=bubble-wars.tk:443'>Bubble Wars</option></select></div>");
    $( ".diep-cross" ).replaceWith("<div style='opacity: 0; visibility: hidden;'></div>");
    $( "input#nick.form-control").replaceWith("<input id='nick' class='form-control' placeholder='Speudo' maxlength='' autofocus>");
    $( "#adbg" ).replaceWith("<a href='//youtube.com/PLAYAgarioMaStPlay' target='_BLANK'><img src='//static1.squarespace.com/static/501587e5c4aa0c0d03289988/t/530a4774e4b0efed6707af65/1393182581824/youtube_logo_detail.png?format=500w' style='width: 100%; height: 100%;'></img></a>");
    $( "#container" ).replaceWith("<a href='//youtube.com/PLAYAgarioMaStPlay' target='_BLANK'><img src='//static1.squarespace.com/static/501587e5c4aa0c0d03289988/t/530a4774e4b0efed6707af65/1393182581824/youtube_logo_detail.png?format=500w' style='width: 100%; height: 100%;'></img></a>");
    $( "#canvas" ).after("<img src='http://www.wallpapersxl.com/wallpapers/1920x1080/dot/158974/dot-dots-pixels-tagged-abstract-158974.jpg'>");
    addGlobalStyle("#nick { width:100%; margin-bottom: 5px; }");
    addGlobalStyle("#gamemode { width:100%; }");
    addGlobalStyle(".form-control { border: 1px solid #000; background-color: #fff; color: #000; border-radius: 0px; } ");
    addGlobalStyle(".btn-success { border: 1px solid #000; background-color: #fff; color: #000; } ");
    addGlobalStyle(".btn-login-play { border: 1px solid #000; background-color: #fff; color: #000; } ");
    addGlobalStyle(".btn-info { border: 1px solid #000; background-color: #fff; color: #000; border-radius: 0px; } ");
    addGlobalStyle(".btn-shop, .btn-shop:active, .btn-shop:disabled { border: 1px solid #000; background-color: #fff; color: #000; } ");
    addGlobalStyle(".btn-warning { border: 1px solid #000; background-color: #fff; color: #000; } ");
    addGlobalStyle(".btn-primary { border: 1px solid #000; background-color: #fff; color: #000; border-radius: 180px; } ");
    addGlobalStyle(".btn-danger { border: 1px solid #000; background-color: #fff; color: #000; } ");
    addGlobalStyle(".btn { border-radius: 18px; } ");
    addGlobalStyle(".agario-panel { border-radius: 0px; } ");
    addGlobalStyle(".tosBox.right { border-radius: 0px; border: 1px solid #000; } ");
    addGlobalStyle(".tosBox.left { border-radius: 0px; border: 1px solid #000; } ");
    addGlobalStyle("#canvas { opacity: 0.8; } ");
};
var SplitInterval;
var MacroInterval;
var SplitDebounce = false;
var MacroDebounce = false;
$(document).on('keydown', function(input) {
    console.log("got keydown");
    if (input.keyCode == 16) {
        if (SplitDebounce) {
            return;
        }
        SplitDebounce = true;
        SplitInterval = setInterval(function() {
            $("body").trigger($.Event("keydown", {
                keyCode: 32
            }));
            $("body").trigger($.Event("keyup", {
                keyCode: 32
            }));
        }, 0);
    } else if (input.keyCode == 81) {
        if (MacroDebounce) {
            return;
        }
        MacroDebounce = true;
        MacroInterval = setInterval(function() {
            $("body").trigger($.Event("keydown", {
                keyCode: 87
            }));
            $("body").trigger($.Event("keyup", {
                keyCode: 87
            }));
        }, 0);
    }
});
$(document).on('keyup', function(input) {
    if (input.keyCode == 16) {
        SplitDebounce = false;
        clearInterval(SplitInterval);
        return;
    } else if (input.keyCode == 81) {
        MacroDebounce = false;
        clearInterval(MacroInterval);
        return;
    }
});
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);
}