Agar.io custom skins

Custom Skins for Agar.io

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Agar.io custom skins
// @namespace    Custom Skins
// @version      1.0
// @description  Custom Skins for Agar.io
// @author       ArcadeGamer
// @match        *.agar.io/*
// @grant        none
// ==/UserScript==
 //edit the main ads block

var element = document.getElementById("mainui-ads");
element.innerHTML = '';
//change css style
element.style.height = "115px";

//inject the skin input

window.onload = document.getElementById('instructions').innerHTML += '<br><br>Custom Skins<br><br><input placeholder="Paste your image link here" id="skin" class="form-control" style="width:275px" <div id="h2u"><font size="2" color="#FF0000"><br><center style="margin-bottom: -5px;"><a href="javascript:window.core.registerSkin(document.getElementById(\'nick\').value, null, document.getElementById(\'skin\').value, 2,null);" id="ss"></a><a href="javascript:window.core.registerSkin(document.getElementById(\'nick\').value, null, document.getElementById(\'skin\').value, 3, null);" id="hh"></div>';

//set skin when play is pressed

document.getElementById('play').onclick = function() {
        if (skin.value == '' || skin.value == skin.defaultValue) {
        }
   else {
        core.registerSkin(document.getElementById('nick').value, null, document.getElementById('skin').value, 2,null);
   }
        setTimeout(function(){
        }, 1000);
    };