eUkraine Battle Orders

Orders for eUkraine in eRepublik.

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

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.

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

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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