eUkraine Battle Orders

Orders for eUkraine in eRepublik.

  1. // ==UserScript==
  2. // @name eUkraine Battle Orders
  3. // @namespace www.erepublik.com
  4. // @version 0.01
  5. // @author vist
  6. // @description Orders for eUkraine in eRepublik.
  7. // @include http*erepublik.com*
  8. // @connect docs.google.com
  9. // @grant GM_xmlhttpRequest
  10. // ==/UserScript==
  11.  
  12. (function(window, undefined){
  13. var w;
  14. if(unsafeWindow != "undefined")
  15. {
  16. w = unsafeWindow;
  17. }
  18. else
  19. {
  20. w = window;
  21. }
  22. if(w.self != w.top)
  23. {
  24. return;
  25. }
  26.  
  27. console.log('init: ' + GM_info.script.name);
  28.  
  29. var mapContainer = jQuery('#mapContainer');
  30. if(mapContainer.length)
  31. {
  32. GM_xmlhttpRequest({
  33. method: 'GET',
  34. // url: 'https://docs.google.com/spreadsheets/d/1hkNxf004pUl_8gb8e0Bh4W2ryavzntTw7JG5YLVNET4/edit?usp=drive_web',
  35. url: 'https://docs.google.com/spreadsheets/d/1hkNxf004pUl_8gb8e0Bh4W2ryavzntTw7JG5YLVNET4/pubhtml',
  36.  
  37. onload:function(response){
  38. var page = jQuery(response.responseText);
  39. var table = page.find('table').html();
  40. mapContainer.after(table);
  41. }
  42. });
  43. }
  44. })(window);