Requirements:
-Friendster Account
-Ripway
-JS
==========================================================================================
Credits:
-Feruzz to a new code
-Lordheinz for the Comment and i edit
-ducheszv for helping me
==========================================================================================
The code will not work if:
-the user dont hav friends
==========================================================================================
[url=http://friendster.com/myrulez18]Preview[/url]
==========================================================================================
Change the bold text to how many friends you want..
[quote]var replaceLink = document.createElement("a");
replaceLink.href = "http://www.friendster.com/friends/"+pageOwnerID;
replaceLink.appendChild(document.createTextNode("View All ([b]1000000[/b])"));
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]
after you change juz paste to your JS
===========================================================================================
Example of Code:
<">
Last edited by Chezter18 (2008-03-13 18:26:50)