// ==UserScript== // @name Agar.io Custom Skins | By KapClanYT // @namespace http://tampermonkey.net/ // @version 1.0 // @description Paste a direct imigur link below your name to use a custom skin // @author KapClanYT - https://www.youtube.com/channel/UCQEYdaW3G7wOge5B0T8UVPA // @match http://agar.io/* // @match http://petridish.pw/* // @match http://agarly.com/* // @match http://agar.biz/* // @match http://en.agar.bio/* // @match http://agar.pro/* // @match http://agar.biz/* // @match http://Xgario.ml/* // @run-at document-end // @grant none // @downloadURL https://update.greasyfork.icu/scripts/29006/Agario%20Custom%20Skins%20%7C%20By%20KapClanYT.user.js // @updateURL https://update.greasyfork.icu/scripts/29006/Agario%20Custom%20Skins%20%7C%20By%20KapClanYT.meta.js // ==/UserScript== function setSkin() { if (document.getElementById('skin').value.match(/^http(s)?:\/\/(.*?)/)) { localStorage.setItem("skin", document.getElementById('skin').value); } document.getElementsByClassName('circle bordered')[0].src = document.getElementById('skin').value; if (document.getElementById("h").checked === true) { localStorage.setItem("h", "3"); document.getElementById('hh').click(); clearInterval(i); } else { localStorage.setItem("h", "2"); document.getElementById('ss').click(); } } function init() { if (document.getElementsByClassName('circle bordered')[0] && document.getElementById('skin').value.match(/^http(s)?:\/\/(.*?)/)) { document.getElementById('skinLabel').style.display = "none"; document.getElementById('skinButton').className = ""; document.getElementsByClassName('circle bordered')[0].style.display = 'block'; document.getElementsByClassName('circle bordered')[0].src = document.getElementById('skin').value; } } document.getElementsByClassName('form-group clearfix')[1].innerHTML += '