Dugout

en

  1. 
  2. // ==UserScript==
  3. // @name Dugout
  4. // @version 7
  5. // @description en
  6.  
  7. // @include https://www.dugoutsoccer.com/*
  8. // @include http://www.dugoutsoccer.com/*
  9. // @exclude https://www.dugoutsoccer.com/index.php
  10. // @exclude https://www.dugoutsoccer.com/
  11. // @exclude http://www.dugoutsoccer.com/index.php
  12. // @exclude http://www.dugoutsoccer.com/
  13. // @namespace https://greasyfork.org/users/7445
  14. // ==/UserScript==
  15.  
  16.  
  17.  
  18. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  19. // Customize Section: Customize Dugout ///
  20. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  21. // ///
  22. var menubar = "yes"; // switch yes/no to turn the menubar on/off ///
  23. var stadium = "on"; // on/off
  24. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  25. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  26. var background = "ne";
  27. //The following background are supported right now: ///
  28. // ///
  29. // Aqua = aq ///
  30. // Night = ni /// /// Stadium champions league = sc ///
  31. // StadiumBarca = sb ///
  32. // Neymar = ne ///
  33. // GoKick = go ///
  34. // ///
  35. // ///
  36. // ///
  37. // ///
  38. // ///
  39. // ///
  40. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  41. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  42. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  43. var language = "en"; // choose your language, check supported languages below:
  44.  
  45.  
  46. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  47. // en = English ///
  48. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  49.  
  50.  
  51. switch (language) {
  52.  
  53. //English
  54. case "en":
  55. var Home = "Club";
  56. var Squad = "Squad";
  57. var Tactics = "Tactics";
  58. var Fixtures = "Fixtures";
  59. var Finances = "Finances";
  60. var TrainingOverview = "Training Overview";
  61. var Training = "Training";
  62. var League = "League";
  63. var TransferList = "Transfer List";
  64. var Forum = "Forum";
  65. var Manual = "Manual";
  66. var Exit = "Exit";
  67. break;
  68.  
  69.  
  70. }
  71.  
  72.  
  73.  
  74. if (stadium == "on") {
  75. switch (background) {
  76.  
  77. //Aqua
  78. case "aq":
  79. var div1 = document.createElement('div');
  80. appdiv1 = document.body.appendChild(div1);
  81. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: -1; top: -200px; left: 0px; height: 1500px; width: 3000px; -moz-opacity: .8; text-align: left; outset; background: url(http://www.imperiumtapet.com/media/wallpaper/82740/image/be83f6bbeee34c7c9d44_1920x1200_cropromiar-niestandardowy.jpg);"></a></span></div>';
  82.  
  83. break;
  84. //Night
  85. case "ni":
  86. var div1 = document.createElement('div');
  87. appdiv1 = document.body.appendChild(div1);
  88. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: -1; top: 0px; left: 0px; height: 1500px; width: 3000px; -moz-opacity: .8; text-align: left; outset; background: url(http://images7.alphacoders.com/306/306565.jpg);"></a></span></div>';
  89.  
  90. break;
  91. //StadiumCHL
  92. case "sc":
  93. var div1 = document.createElement('div');
  94. appdiv1 = document.body.appendChild(div1);
  95. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: -1; top: -50px; left: 0px; height: 1500px; width: 3000px; -moz-opacity: .8; text-align: left; outset; background: url(http://images.123hdwallpapers.com/20150523/football-stadium-1920x1200.jpg);"></a></span></div>';
  96.  
  97. break;
  98. //StadiumBarca
  99. case "sb":
  100. var div1 = document.createElement('div');
  101. appdiv1 = document.body.appendChild(div1);
  102. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: -1; top: -50px; left: 0px; height: 1500px; width: 3000px; -moz-opacity: .8; text-align: left; outset; background: url(http://images6.alphacoders.com/324/324025.jpg);"></a></span></div>';
  103.  
  104. break;
  105.  
  106. //Neymar
  107. case "ne":
  108. var div1 = document.createElement('div');
  109. appdiv1 = document.body.appendChild(div1);
  110. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: -1; top: 50px; left: 0px; height: 1500px; width: 3000px; -moz-opacity: .8; text-align: left; outset; background: url(http://i.imgur.com/9uqF1im.png);"></a></span></div>';
  111.  
  112. break;
  113.  
  114. //GoKick
  115. case "go":
  116. var div1 = document.createElement('div');
  117. appdiv1 = document.body.appendChild(div1);
  118. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: -1; top: -50px; left: 0px; height: 1500px; width: 3000px; -moz-opacity: .8; text-align: left; outset; background: url(http://i.imgur.com/dFucGWe.png);"></a></span></div>';
  119.  
  120. break;
  121.  
  122. }
  123. }
  124.  
  125.  
  126.  
  127.  
  128. {
  129.  
  130.  
  131. //Menu bottom right
  132. if (menubar == "yes") {
  133. var div1 = document.createElement('div');
  134. appdiv1 = document.body.appendChild(div1);
  135. appdiv1.innerHTML = '<div id="menu" style="position: fixed; z-index: 1000; bottom: 0px; right: 450px; height: 35px; width: 800px; -moz-opacity: .8; text-align: left; outset; background: url(http://www.patrick-meurer.de/tm/TrophyBuddy_menu2.png);">&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/clubhouse.php"><img src="http://i62.tinypic.com/scffqd_th.jpg" title="' + Home + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/squad.php"><img src="http://i58.tinypic.com/r94bcn_th.jpg" title="' + Squad + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/lineup.php"><img src="http://i62.tinypic.com/1zowzzm_th.jpg" title="' + Tactics + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/fixtures.php"><img src="http://i57.tinypic.com/azb4sw_th.jpg" title="' + Fixtures + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/finances.php"><img src="http://i61.tinypic.com/ff4pkx_th.jpg" title="' + Finances + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://www.dugoutsoccer.com/training-overview.php"><img src="http://i62.tinypic.com/2nlsmqb_th.jpg" title="' + TrainingOverview + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/training.php"><img src="http://i60.tinypic.com/dy1wle_th.jpg" title="' + Training + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/table.php"><img src="http://dugoutsoccer.com/images/trophies/1.png" title="' + League + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://www.dugoutsoccer.com/transfer-list.php"><img src="http://i61.tinypic.com/9tohn5_th.jpg" title="' + TransferList + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/forum/index.php"><img src="http://i61.tinypic.com/2qbugpf_th.jpg" title="' + Forum + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/manual.php"><img src="http://i62.tinypic.com/j5v34i_th.jpg" title="' + Manual + '" style="height: 25px;"></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="position:relative; top:5px;left:0px"><a href="http://dugoutsoccer.com/logout.php"><img src="http://patrick-meurer.de/tm/trophybuddy/logout.png" title="' + Exit + '" style="height: 25px;"></a></span></div>';
  136. }
  137. else {
  138. }
  139. /*
  140. var TMDB = document.createElement("span"); // erzeugt ein html-span-tag
  141. TMDB.innerHTML=Tform;
  142. document.getElementById("lastspan").appendChild(TMDB);
  143. */
  144.  
  145. }
  146.  
  147.  
  148.  
  149.  
  150.