// ==UserScript== 
// @name Facebook2PG
// @namespace http://www.freakpants.ch 
// @include http://www.facebook.com/* 
// ==/UserScript== 

// v0.1
// 09.12.2008

theName = document.getElementById('profile_name'); 
theTime = document.getElementById('status_time'); 
if (theName) { 
	GM_xmlhttpRequest({ 
		method: 'GET', url: 'http://www.freakpants.ch/greasemonkey/php/fb2pg.php?name=' + theName.innerHTML, 
		headers: { 
			'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey', 
			'Accept': 'application/atom+xml,application/xml,text/xml', 
		}, 
		onload: function(responseDetails) { 
			var pgUsers = responseDetails.responseText; 
			if(theTime){ 
				theTime.innerHTML = theTime.innerHTML + pgUsers; 
			} else { 
				theName.innerHTML = theName.innerHTML + pgUsers; 
			} 
		} 
	}); 
}
