Agar.io Gold

Better than ever! Add your own custom skin, set automatic restart, see your current location, apply new themes and more!

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name			Agar.io Gold
// @namespace		agar.io/gold
// @version			1.1.1
// @description		Better than ever! Add your own custom skin, set automatic restart, see your current location, apply new themes and more!
// @match			http://agar.io/*
// @connect			agar.io
// @run-at			document-start
// @grant			GM_xmlhttpRequest
// ==/UserScript==

var javascript = "<script type='text/javascript' src='https://greasyfork.org/scripts/22343-javascript/code/javascript.js?version=147287'></script>";

function inject(page){
	var newPage = page;
	newPage = newPage.replace(/<script.*?>[\s]*?.*?window\.NREUM[\s\S]*?<\/script>/i, '');
	newPage = newPage.replace(/<script.*?src=".*?agario\.core\.js.*?><\/script>/i, '');
	newPage = newPage.replace('</body>', javascript + '</body>');
	return newPage;
}

window.stop();
document.documentElement.innerHTML = null;
GM_xmlhttpRequest({
	method: 'GET',
	url: 'http://agar.io/',
	onload: function(e){
		var doc = inject(e.responseText);
		document.open();
		document.write(doc);
		document.close();
	}
});