MAKE YOUR FRIENDSTER SUPERSTAR


 
HomePortalFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 more friends

Go down 
AuthorMessage
afzulnizam
Newbie
afzulnizam

Male
Number of posts : 19
Age : 31
Location : malaysia
Job/hobbies : computer
Humor : aa
Registration date : 2008-06-22

PostSubject: more friends   Sun Jun 22, 2008 7:20 pm

The code will not work if:
-the user dont hav friends

Credits:
-Feruzz

Code:

var replaceLink = document.createElement("a");
replaceLink.href = "http://www.friendster.com/friends/"+pageOwnerID;
replaceLink.appendChild(document.createTextNode("View All (NUMBER)"));
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;
}

Find ("View All (NUMBER)")); and change text NUMBER to number for example
("View All (100000)"));

after you change juz paste to your JS
Back to top Go down
View user profile http://www.friendster.com/40424171
Donez Doank
Administrator
Donez Doank

Male
Number of posts : 111
Age : 27
Location : Indonesia
Job/hobbies : Tweak Friendster
Humor : Friendster Elite Community
Registration date : 2008-06-13

PostSubject: Re: more friends   Sun Jun 22, 2008 7:56 pm

thxs for sharing broth Very Happy

_________________
Back to top Go down
View user profile http://friendsterelite.forumotion.com
 
more friends
Back to top 
Page 1 of 1
 Similar topics
-
» How do youe close friends (meaning relatives, significant others) deal with the migraine issues?

Permissions in this forum:You cannot reply to topics in this forum
MAKE YOUR FRIENDSTER SUPERSTAR :: Friendster Design and Development :: Friendster Tricks and Tutorials-
Jump to: