MAKE YOUR FRIENDSTER SUPERSTAR
Would you like to react to this message? Create an account in a few clicks or log in to continue.

MAKE YOUR FRIENDSTER SUPERSTAR


 
HomePortalLatest imagesSearchRegisterLog in

 

 more friends

Go down 
2 posters
AuthorMessage
afzulnizam
Newbie
afzulnizam


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

more friends Empty
PostSubject: more friends   more friends Icon_minitimeSun 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
http://www.friendster.com/40424171
Donez Doank
Administrator
Donez Doank


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

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

thxs for sharing broth Very Happy
Back to top Go down
https://friendsterelite.forumotion.com
 
more friends
Back to top 
Page 1 of 1

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: