Archive for the ‘Facebook’ Category

Facebook – How To Select All Your Friends In One Blink – Applicable For Events/Pages/Groups

Sunday, May 23rd, 2010

Ever tried suggesting a Facebook Fan Page to your friends? How about a Facebook Groups? Or inviting your friends to your created Events? It’s easy if you only have 10 friends or so, it would only take 10 clicks and you are done. But, if you have 5000 friends, then I think you would agree that it would take a million years before you finish selecting them all.

There is this javascript code that you can see in most groups that suggest posting on your browser so that you can easily select all your friends, see it below:

javascript:
elms=
document.getElementById('friends').getElementsByTagName('li');
for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}

This still works in Google Chrome but it will hang your Firefox browser if you try that code.

So, I’ve found a new code on the web and it is much simpler than the above code. You also need to post this code on your browser address bar.

To Select All Your Friends
javascript:fs.select_all()

To Deselect All Your Friends
javascript:fs.unselect_all()

The code above works on Firefox 3.6 and Google Chrome. It would also work on Pages, Groups and Events.

So what are you waiting for? Test it and have fun :)

Facebook Castle Age Tips

Saturday, February 20th, 2010

How to add a facebook friend into your Castle Age army?

* Applies when you recently added a friend for your army and he has no link for my army posted on his profile.
* Applies when you want another way to add a friend to your army.
* Tested on Mozilla Firefox.

1. Create a bookmark. Edit the location with this:

javascript:{nibor=document.location.href.split(‘=’)[1];%20document.location.href=’http://apps.facebook.com/castle_age/index.php?tp=cht&lka=’+nibor+’&buf=1′;}

castle age army add

castle age army add

Explanation of the code:

javascript:
{
nibor=document.location.href.split(‘=’)[1]; //put the profile id on nibor variable
%20document.location.href=’http://apps.facebook.com/castle_age/index.php?tp=cht&lka=‘+nibor+’&buf=1‘; //change the address to castle age add army format inserting the address saved on nibor
}

2. Go to your friend’s profile. Address on your browser should looked like this:

http://www.facebook.com/profile.php?id=123456789

3. Click the bookmark you have created from step 1.

How to add a facebook friend to your EliteGuard?

1. Create a bookmark. Edit the location with this:

javascript:{nibor=document.location.href.split(‘=’)[1];%20document.location.href=’http://apps.facebook.com/castle_age/party.php?twt=jneg&jneg=true&user=’+nibor+’&lka=’+nibor+’&ref=nf’;}

2. Go to your friend’s profile. Address on your browser should looked like this:

http://www.facebook.com/profile.php?id=123456789

3. Click the bookmark you have created from step 1.