Orkut Full Name in Scraps

By gultus Last update Oct 9, 2009 — Installed 1,493 times. Daily Installs: 2, 3, 2, 2, 2, 0, 2, 0, 2, 3, 1, 1, 1, 4, 4, 4, 0, 0, 3, 2, 3, 2, 5, 0, 1, 0, 1, 2, 1, 2, 0, 2

There are 2 previous versions of this script.

// ==UserScript==
// @version 1
// @name Orkut Full Name in Scraps
// @author  http://www.orkut.com/Profile.aspx?uid=15963659674315462805
// @namespace
// @description Shows Full Name of the person who posted the scrap
// @include http://*orkut*Scrapbook*
// ==/UserScript==

function expandnames(){
var mboxfull =  document.getElementById("mboxfull");
var scrapcontainer = mboxfull.getElementsByTagName("div");
for(i=0;i<=scrapcontainer.length;i++){
	var chkclass = scrapcontainer[i].getAttribute("class");
	if(chkclass == "listitemchk"){
		var scrapimg = scrapcontainer[i].getElementsByTagName("img");
		for(j=0; j<scrapimg.length; j++){
			titles = scrapimg[j].getAttribute("title");
			if(titles != null)
			break;
		}
		if(titles != "no photo"){
		var scraphead = scrapcontainer[i].getElementsByTagName("h3")[0];
		var scraplink = scraphead.getElementsByTagName("a");
		for(k=0;k<scraplink.length;k++){
		if(scraplink[k].getAttribute("href").match(/Profile/) != null){	
		scraplink[k].innerHTML = titles;
		break;
	    }
		}
	}
		
	}
}
}

addEventListener('load',expandnames,false);