eUkraine Battle Orders

Orders for eUkraine in eRepublik.

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           eUkraine Battle Orders
// @namespace      www.erepublik.com
// @version        0.01
// @author         vist
// @description    Orders for eUkraine in eRepublik.
// @include        http*erepublik.com*
// @connect        docs.google.com
// @grant          GM_xmlhttpRequest
// ==/UserScript==

(function(window, undefined){
	var w;
	if(unsafeWindow != "undefined")
	{
		w = unsafeWindow;
	}
	else
	{
		w = window;
	}
	if(w.self != w.top)
	{
		return;
	}

	console.log('init: ' + GM_info.script.name);

	var mapContainer = jQuery('#mapContainer');
	if(mapContainer.length)
	{
		GM_xmlhttpRequest({
			method: 'GET',
			// url: 'https://docs.google.com/spreadsheets/d/1hkNxf004pUl_8gb8e0Bh4W2ryavzntTw7JG5YLVNET4/edit?usp=drive_web',
			url: 'https://docs.google.com/spreadsheets/d/1hkNxf004pUl_8gb8e0Bh4W2ryavzntTw7JG5YLVNET4/pubhtml',

			onload:function(response){
				var page = jQuery(response.responseText);
				var table = page.find('table').html();
				mapContainer.after(table);
			}
		});
	}
})(window);