Skin Changer for agarplus.io

Changes your skin in agarplus per given interval from skins array.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @require      https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @name         Skin Changer for agarplus.io
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Changes your skin in agarplus per given interval from skins array.
// @author       master2500
// @match        http*://agar.io
// @grant        none
// ==/UserScript==


//CHANGE INTERVAL (in milliseconds)
var interval = 3000;


//SKINS LIST
var skins = ["http://hdwallpaperbackgrounds.net/wp-content/uploads/2015/08/cute-anime-girl-background-hd-wallpapers.jpg",
    "http://hdwallpaperbackgrounds.net/wp-content/uploads/2015/08/Cute-Anime-Baby-Girl-HD-Wallpapers.jpg",
    "http://hdwallpaperbackgrounds.net/wp-content/uploads/2015/08/Cute-Anime-Girl-Blue-Eyes-HD-Wallpapers.jpg",
    "http://hdwallpaperbackgrounds.net/wp-content/uploads/2015/08/Cute-Anime-Girl-Desktop-HD-Wallpapers.jpg",
    "http://hdwallpaperbackgrounds.net/wp-content/uploads/2015/08/Cute-Anime-Girl-Desktop-Wallpapers-HD.jpg"
];

















for(var i = 0; i < skins.length; i++) {
    var img = new Image();
    img.src = skins[i];
}
var current = 0;
setInterval(function() {
    $("#customskin").val(skins[current]);
    if ($("#gameStats").css("display") == "block") {
        $("button[data-itr='play']").trigger("onclick");
    }
    current++;
    if (current == skins.length) {
        current = 0;
    }
}, interval);