Fussballcup Plus

Erweierung der Menüleiste!

Från och med 2017-09-22. Se den senaste versionen.

// ==UserScript==
// @name       Fussballcup Plus
// @include  http://fussballcup.de/*
// @version    0.1.2 
// @description  Erweierung der Menüleiste!
// @copyright  mot33, 2017
// @namespace https://greasyfork.org/users/83290
// ==/UserScript==

///////////////////////////////////////////////////////////////////////////////////

// ############### CONFIGURATION ###############
var icon_path = "https://abload.de/img/navigation_spriteutjz3.png";
var icon_config = "width='1px'";
// ######################################

function grafik()
{
    	if(!document.getElementById("Grafikabteilung"))
        { 
          document.getElementById("user-profile-signatures").innerHTML +="<div id='Grafikabteilung'></div>";
            
            var grafik = document.getElementsByClassName("last")[0].firstElementChild.getAttribute("href");
    		document.getElementsByClassName("category-links category4")[0].innerHTML += "<b style='bottom:0px;padding:0px ;'>"+"<a target= '_blank' href=http://forum.fussballcup.de/forumdisplay.php?f=19 " + "'class: last'<span>Grafikabteilung</span></b></a><img "+ icon_config + " src='" + icon_path + "' />";
        }
    }
window.setTimeout(function() { grafik();}, 2000);
window.setInterval(function() { grafik(); }, 5000);

////////////////////////////////////////////////////////////////////////////////

// ############### CONFIGURATION ###############
var icon_path = "https://abload.de/img/navigation_spriteutjz3.png";
var icon_config = "width='1px'";
// ######################################

function tools()
{
    	if(!document.getElementById("Tools"))
        { 
          document.getElementById("user-tricotshop-index").innerHTML += "<div id='Tools'></div>";
            
            var tools = document.getElementsByClassName("last")[0].firstElementChild.getAttribute("href");
    		document.getElementsByClassName("category-links category5")[0].innerHTML += "<b style='bottom:0px;padding:0px ;'>"+"<a target= '_blank' href=http://forum.fussballcup.de/forumdisplay.php?f=140 " + "'<span>Tools</span></b></a><img "+ icon_config + " src='" + icon_path + "' />";
        }
    }
window.setTimeout(function() { tools();}, 2000);
window.setInterval(function() { tools(); }, 5000);

////////////////////////////////////////////////////////////////////////////////

// ############### CONFIGURATION ###############
var icon_path = "https://abload.de/img/navigation_spriteutjz3.png";
var icon_config = "width='1px'";
// ######################################

function rechner()
{
    	if(!document.getElementById("Rechner"))
        { 
          document.getElementById("user-transfermarket-index").innerHTML += "<div id='Rechner'></div>";
            
            var rechner = document.getElementsByClassName("last")[0].firstElementChild.getAttribute("href");
    		document.getElementsByClassName("category-links category2")[0].innerHTML += "<b style='bottom:0px;padding:0px ;'>"+"<a target= '_blank' href=http://tsc1996.wixsite.com/fcup-tools/fcup-rechner " + "'<span>Rechner</span></b></a><img "+ icon_config + " src='" + icon_path + "' />";
        }
    }
window.setTimeout(function() { rechner();}, 2000);
window.setInterval(function() { rechner(); }, 5000);

////////////////////////////////////////////////////////////////////////////////

// ############### CONFIGURATION ###############
var icon_path = "https://abload.de/img/navigation_spriteutjz3.png";
var icon_config = "width='1px'";
// ######################################

function club()
{
    	if(!document.getElementById("Club-Lounge"))
        { 
          document.getElementById("user-betoffice-index").innerHTML += "<div id='Club-Lounge'></div>";
            
            var club = document.getElementsByClassName("last")[0].firstElementChild.getAttribute("href");
    		document.getElementsByClassName("category-links category1")[0].innerHTML += "<b style='bottom:0px;padding:0px ;'>"+"<a target= '_blank' href=http://forum.fussballcup.de/forumdisplay.php?f=172 " + "'<span>Club-Lounge</span></b></a><img "+ icon_config + " src='" + icon_path + "' />";
        }
    }
window.setTimeout(function() { club();}, 2000);
window.setInterval(function() { club(); }, 5000);

/////////////////////////////////////////////////////////////////////////////////

// ############### CONFIGURATION ###############
// change URL for other icon for "Alterung"
var icon_path3 = "https://abload.de/img/navigation_green_spri8ujbs.png";
var icon_path1 = "https://abload.de/img/alter-mann-zu-fub-mit7fsec.png";
var icon_config3 = "higth='32px'"; 
var icon_config1 = "width='16px'"; 
// ######################################

function alterung()
{
    	if(!document.getElementById("alterung"))
        {
            var alterung = document.getElementsByClassName("handle skills inactive")[0].firstElementChild.getAttribute("href");
			document.getElementsByClassName("handle-container container-handle")[0].innerHTML += "<b style= position:absolute;bottom:8px;> "+" <a  target= '_blank' href=http://forum.fussballcup.de/showthread.php?t=321707"  + "' class='inactive' id='alterung'><img " + icon_config1 + " src='" + icon_path1 + "' /></a>";
    		document.getElementsByClassName("handle-container container-handle")[0].innerHTML += "<b style= position:absolute;bottom:8px;> "+" <a  target= '_blank' href=http://forum.fussballcup.de/showthread.php?t=321707"  + "' class='inactive' id='alterung'>&nbsp&nbsp&nbsp&nbsp&nbsp<span>Alterung</span></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<img " + icon_config3 + " src='" + icon_path3 + "' /></a>";
		}
}

window.setTimeout(function() { alterung();}, 2000);
window.setInterval(function() { alterung();}, 5000);

//////////////////////////////////////////////////////////////////////////////

// ############### CONFIGURATION ###############
// change URL for other icon for "Magazin"
var icon_path4 = "https://abload.de/img/navigation_sprite51q2y.png";
var icon_config4 = "higth=32px'"; 
// ######################################


function magazin()
{
    	if(!document.getElementById("magazin"))
        {
            document.getElementById("press-header").innerHTML +="<div id='magazin'></div>";
            
            var magazin = document.getElementsByClassName("handle-container")[0].firstElementChild.getAttribute("href");
			
    		document.getElementsByClassName("handle-container")[0].innerHTML += "<b style= position:absolute;bottom:9px;> "+" <a "+" target= '_blank' href=http://forum.fussballcup.de/forumdisplay.php?f=89"  + " id='magazin'>&nbsp<span>Das Fcup - Magazin</span></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<img " + icon_config4 + " src='" + icon_path4 + "' /></a>";
		}
}

window.setTimeout(function() { magazin();}, 2000);
window.setInterval(function() { magazin();}, 5000);


// ############### CONFIGURATION ###############
// change URL for other icon for "Alterung"
var icon_path5 = "https://abload.de/img/navigation_green_spri8ujbs.png";
var icon_config5 = "higth='32px'"; 
// ######################################

function turnier()
{
    	if(!document.getElementById("turnier"))
        {
            document.getElementById("tournament").innerHTML +="<div id='turnier'></div>";
            
            var turnier = document.getElementsByClassName("handle-container")[0].firstElementChild.getAttribute("href");
			
    		document.getElementsByClassName("handle-container")[0].innerHTML += "<b style= position:absolute;bottom:8px;> "+" <a  target= '_blank' href=http://forum.fussballcup.de/forumdisplay.php?f=25"  + "' class='active' id='turnier'>&nbsp<span>Großturniere</span></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<img " + icon_config5 + " src='" + icon_path5 + "' /></a>";
		}
}

window.setTimeout(function() { turnier();}, 2000);
window.setInterval(function() { turnier();}, 5000);