Agar.io Gold

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
	}
});