PM Link On Player Page

sdfsdf

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 or Violentmonkey 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           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 += ")";
}