PM Link On Player Page

sdfsdf

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           PM Link On Player Page
// @namespace      pmlopp
// @include        http://goallineblitz.com/game/player.pl?player_id=*
// @version        09.08.21
// @copyright      2009, pabst
// @license        (CC) Attribution Share Alike; http://creativecommons.org/licenses/by-sa/3.0/
// @description sdfsdf
// ==/UserScript==

window.setTimeout( function() {
    main();
}, 100);

function main() {
	var td= document.getElementsByClassName("vital_data")[5];
	var link = td.firstChild;
	var id = link.href.split("=")[1];
	
	var a = document.createElement("a");
	a.href = "http://goallineblitz.com/game/new_message.pl?to="+id;
	a.innerHTML = "Send PM";

	link.parentNode.innerHTML += " (";

	link = td.firstChild;
	link.parentNode.appendChild(a);

	link = td.firstChild;
	link.parentNode.innerHTML += ")";
}