HKG Skin Preview for Agarplus
// ==UserScript==
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @name Skin Preview
// @namespace Skin Preview
// @version 2.0.7
// @description HKG Skin Preview for Agarplus
// @author Benunzee
// @match http*://agar.io
// @include http://*agar.io/agarplus.io
// @grant GM_xmlhttpRequest
// ==/UserScript==
// variables
var sideContainer = '.side-container.left-side'; //container to append skin changer menu
var leftContainer = '.forums'; //used to find left container
var loadCheckInterval = 100; //interval to check if container has loaded
var Title = 'h2.aTitle'
var Tags = 'div#teamNameContainer.input-group'
var Ad = 'center'
//check if page loaded
var ci = setInterval(function()
{
if ($(sideContainer).has(leftContainer).length)
{
clearInterval(ci);
// set the title to something cooler
$(Title).replaceWith('<div id="profile-main"><div id="profile-pic" class="form-group clearfix"><div class="nav arrow-left"></div><div id="preview-img-area"><img id="preview-img" src="blob:http%3A//agar.io/e10a5854-4df7-4a48-87f1-c5ed28feb661" style="display: inline;"></div><div class="nav arrow-right"></div></div>');
// Remove Ads
$(Ad).replaceWith('');
}
else
{
// set title
$(Title).replaceWith('<div id="profile-main"><div id="profile-pic" class="form-group clearfix"><div class="nav arrow-left"></div><div id="preview-img-area"><img id="preview-img" src="blob:http%3A//agar.io/e10a5854-4df7-4a48-87f1-c5ed28feb661" style="display: inline;"></div><div class="nav arrow-right"></div></div>');
// Remove Ads
$(Ad).replaceWith('');
}
}, loadCheckInterval);