MaSt Play MODS

MODS

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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/*
// @match        http://petridish.pw/*
// @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("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("socialStats").style.bottom = "";
    document.getElementById("socialStats").style.top = "290px";
    document.getElementById("statsContinue").style.bottom = "20px";
    document.getElementById("statsContinue").style.top = "344px";
    document.getElementById("stats").getElementsByTagName("hr")[1].style.top = "40px";
    document.getElementById("stats").style.height = "398px";
    document.getElementById("stats").style.padding = "0 0 0";
    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.color = "black";
    document.getElementById("adbg").style.backgroundColor = "black";
    document.getElementById("nick").style.backgroundColor = "black";
    document.getElementById("nick").style.color = "white";
    document.getElementById("adbg").style.visibility = "hidden";
    document.getElementsByClassName("agario-exp-bar progress")[0].style.backgroundColor = "black";
    document.getElementsByClassName("agario-panel agario-side-panel agario-shop-panel")[0].removeChild(document.getElementById("blocker"));
    document.getElementsByClassName("agario-panel agario-side-panel agario-panel-freecoins")[0].removeChild(document.getElementById("coins-blocker"));
    document.getElementsByClassName("side-container right-container")[0].removeChild(document.getElementById("agario-web-incentive"));
    document.getElementsByClassName("side-container right-container")[0].removeChild(document.getElementsByClassName("agario-promo")[0]);
    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-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-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-party-5")[0].style.color = "white";
    document.getElementsByClassName("agario-panel agario-side-panel agario-party-5")[0].style.backgroundColor = "black";
    document.getElementsByClassName("text-muted")[0].style.visibility = "hidden";
    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;
    var presetGameMode = "Party";                                                         //options finish
    $( "#canvas" ).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: 325px; top: 30px; left: 30px; 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 style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>La team: <a href='//pastebin.com/raw/nmcs1XEw' target='_blank'>Lien des chaines</a> </div>" );                                  //petit cadre pour dire les touches des macros
};    //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