Top-News

Top-News Button

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.

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       Top-News
// @include  http://fussballcup.de/*
// @version    0.1
// @description  Top-News Button
// @copyright  mot33, 2016
// @namespace https://greasyfork.org/users/83290
// ==/UserScript==

window.setTimeout(function() { changes() }, 2500);
window.setInterval(function() { changes() }, 5000);
function changes()
{
    	if(!document.getElementById("top-news"))
        {
            var topnews = document.getElementsByClassName("button")[0].firstElementChild.getAttribute("href");
    		document.getElementsByClassName("blog-image")[0].innerHTML += "<b style='position:absolute;bottom:8px;'>"+"<a href='#/index.php?w=301&area=user&module=press&action=topnews&squad=" + "' class='button' id='top-news'><span>T-News</span></b></a>";
		}
}