Greasy Fork is available in English.

MaSt Play MODS

MODS

// ==UserScript==
// @name         MaSt Play MODS
// @namespace    MaSt Play MODS
// @version      0.1
// @description  MODS
// @author       MaSt
// @match        http://abs0rb.me/*
// @match        http://agar.io/*
// @match        http://agarabi.com/*
// @match        http://agarly.com/*
// @match        http://en.agar.bio/*
// @match        http://agar.pro/*
// @match        http://agar.biz/*
// @match        http://gota.io/*
// @grant        none
// ==/UserScript==
window.onload = function() {                                      //fonction au démarrage
    document.getElementById("gamemode").style.backgroundColor = "black";       //CSS inject ( permet de changer des choses sur le site )
    document.getElementById("freeCoins").style.color = "white";
    document.getElementById("freeCoins").style.backgroundColor = "black";
    document.getElementById("freeCoins").style.borderColor = "white";
    document.getElementById("gamemode").style.color = "white";
    document.getElementById("region").style.backgroundColor = "black";
    document.getElementById("region").style.color = "white";
    document.getElementById("quality").style.backgroundColor = "black";
    document.getElementById("quality").style.color = "white";
    document.getElementById("statsGraph").style.bottom = "white";
    document.getElementById("statsGraph").style.top = "40px";
    document.getElementById("stats").getElementsByTagName("hr")[0].style.top = "270px";
    document.getElementById("options").style.color = "white";
    document.getElementById("options").style.backgroundColor = "black";
    document.getElementById("mainPanel").style.color = "black";
    document.getElementById("mainPanel").style.backgroundColor = "black";
    document.getElementById("adbg").style.visibility = "hidden";
    document.getElementById("create-party-btn").style.backgroundColor = "black";
    document.getElementById("create-party-btn").style.borderColor = "white";
    document.getElementById("pre-join-party-btn").style.backgroundColor = "black";
    document.getElementById("pre-join-party-btn").style.borderColor = "white";
    document.getElementById("join-party-btn").style.backgroundColor = "black";
    document.getElementById("join-party-btn").style.color = "white";
    document.getElementById("advertisement").style.visibility = "hidden";
    document.getElementById("nick").style.color = "white";
    document.getElementById("nick").style.backgroundColor = "black";
    document.getElementById("nick").style.width = "40%";
    document.getElementById("openShopBtn").style.backgroundColor = "black";
    document.getElementById("openShopBtn").style.borderColor = "white";
    document.getElementsByClassName("agario-promo")[0].style.visibility = "hidden";
    document.getElementsByClassName("agario-panel agario-side-panel agario-panel-freecoins")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-panel-freecoins")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-profile-panel")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-profile-panel")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-shop-panel")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-shop-panel")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-0")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-0")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-1")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-1")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-2")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-2")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-3")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-3")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-4")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-4")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-5")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-5")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-6")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-6")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-exp-bar progress")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-exp-bar progress")[0].style.border = "2px solid #5BE1F0";
    document.getElementsByClassName("btn btn-primary copy-party-token")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-primary copy-party-token")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-info btn-settings")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-info btn-settings")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-warning btn-login-play btn-needs-server")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-warning btn-login-play btn-needs-server")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-play-guest btn-success btn-needs-server")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-play-guest btn-success btn-needs-server")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-danger btn-logout")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-danger btn-logout")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-warning btn-spectate btn-needs-server")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-warning btn-spectate btn-needs-server")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-play btn-primary btn-needs-server")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-play btn-primary btn-needs-server")[0].style.borderColor = "white";
    document.getElementsByClassName("btn btn-primary btn-block")[0].style.backgroundColor = "black";
    document.getElementsByClassName("btn btn-primary btn-block")[0].style.borderColor = "white";
    var ctx = document.getElementById("canvas").getContext("2d");
    $("h2").replaceWith('<h2 style="color: white; font-family: Ubuntu; font-size: 200%;">MaSt Agar.io</h2>');
    $("h4").replaceWith('<h4 style="color: white; font-family: Ubuntu;">Partie</h4>');
    $("title").replaceWith('<title>MaSt Agar.io</title>');
    $("h1").replaceWith('<h1>MaSt Agar.io</h1>');                          //CSS inject finish
    option_show_mass = true;     //options ( ce qui est déja activé sur le site )
    option_skip_stats = true;
    option_dark_theme = false;
    presetGameMode = "Party";        //options finish
    addGlobalStyle(".agario-exp-bar .progress-bar { background-color: #5BE1F0; }");
    $( "#controller_alert_connected" ).after("<div style='-webkit-filter: saturate(10); -webkit-filter: drop-shadow(19px 19px 20px black); background-color: #000000; -moz-opacity: 0.4; -khtml-opacity: 0.4; opacity: 0.4; filter: alpha(opacity=40); zoom: 1; width: 300px; top: 50px; left: 0px; display: block; position: absolute; text-align: center; font-size: 15px; color: #ffffff; padding: 5px; font-family: Ubuntu;'> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><a href='//www.youtube.com/channel/UCDus6QxlKthkN_n0oaEOsOg' target='_blank'>PLAY - Agar.io YT</a></div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Macro Feed: <a>Q</a> </div> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Full split: <a>Shift</a></div></div>");
    $("#nick").after("<select onchange='location = this.options[this.selectedIndex].value;' class='form-control' required='' style=' width: 86px; float: right; color: white; background-color: black;'><option>Server private</option><option value='//www.agar.io/?ip=mastserver.servegame.com:39856'>Private Server</option></select>");
    $( "#controller_alert_connected" ).after("<div style='background: #f3f2f1; height: 5%; width: 100%; top: 0px; bottom: 0px; color: white; position: fixed; margin-bottom: 15px; -webkit-filter: saturate(10); -webkit-filter: drop-shadow(19px 19px 20px black); -moz-opacity: 0.6; -khtml-opacity: 0.6; opacity: 0.6; filter: alpha(opacity=60);'><ul style='padding: 0; margin: 0;'><li style='float: left; list-style: none; display: inline;'><a href='//mastbots.esy.es/' target='_blank' style='line-height: 40px; display: block; padding: 0 10px; font-size: 40px;'>MaSt Bots</a></li><li style='float: left; list-style: none; display: inline;'><a href='//www.youtube.com/c/PLAYAgarioMaStPlay' target='_blank' style='line-height: 40px; display: block; padding: 0 10px; font-size: 40px;'>My YouTube</a></li><li style='float: left; list-style: none; display: inline;'><a href='#' target='_blank' style='line-height: 40px; display: block; padding: 0 10px; font-size: 40px;'>Skins</a></li></ul></div>");
    $( "#tags-container" ).replaceWith("<div id='ogames'><select onchange='location = this.options[this.selectedIndex].value;' style='width: 300px; color: white; background-color: black;'><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>");
};                     //fin de la fonction du démarrage
var SplitInterval;                                        //variables des macros
var MacroInterval;
var SplitDebounce = false;
var MacroDebounce = false;                               //fin des variables
$(document).on('keydown', function(input) {                //fonction et script des macros
    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);
    }
});                                               //fin de la fonction
$(document).on('keyup', function(input) {
    if (input.keyCode == 16) {
        SplitDebounce = false;
        clearInterval(SplitInterval);
        return;
    } else if (input.keyCode == 81) {
        MacroDebounce = false;
        clearInterval(MacroInterval);
        return;
    }
});                                        //fin du script
function afficher_cacher(id)
{
    if(document.getElementById(id).style.visibility=="hidden")
    {
        document.getElementById(id).style.visibility="visible";
        document.getElementById('bouton_'+id).innerHTML='Cacher le texte';
    }
    else
    {
        document.getElementById(id).style.visibility="hidden";
        document.getElementById('bouton_'+id).innerHTML='Afficher le texte';
    }
    return true;
}
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);
}