ALL
mo nanya neh kode ini ditauh dibgian mana yah
[quote]var replaceLink = document.createElement("a");
replaceLink.href = "http://www.friendster.com/friends/"+pageOwnerID;
replaceLink.appendChild(document.createTextNode("View All (1000000)"));
var viewall = getElementsByClassName(document.getElementById("content_2"),"div","viewall")[0].getElementsByTagName("a")[0];
//if exist
if (viewall !== null) {
viewall.parentNode.replaceChild(replaceLink,viewall);
}
function getElementsByClassName(oElm,sTag,sClass) {
var elm = [];
if (!oElm)oElm = document;
if (!sTag)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className)) {
elm.push(els[j]);
}
}
return elm;
}[/quote]