// ==UserScript== // @name Agar.io custom skins // @version 0.2 // @description Custom Skins for Agar.io // @author Megabyte918 // @match *.agar.io/* // @grant none // @namespace https://greasyfork.org/users/78372 // ==/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 += '