How To Hack Your Facebook Account with Greasemonkey & Javascript

Ads by Google

Facebook/Extended Info ImageFacebook is pretty awesome, but it is far from perfect. More than once, I’ve heard complaints about some of Facebook’s technical aspects. Sadly, Facebook isn’t open-sourced, so users can’t change anything themselves – or can they?

By using simple pieces of Javascript code, or by applying Firefox Greasemonkey userscripts, users can change the appearance and workings of Facebook themselves.

Learn how to hack Facebook accounts for fun, or tweak something useful. Believe me, it really is all in your hands.

Facebook Account Javascript Hacks

In these following hacks we’ll be using basic Javascript to toy around with Facebook. Note that we’re not going to hack into Facebook accounts, or anything of the like. Most of these ‘hacks’ are temporary and will disappear once you refresh the page. They also won’t be visible to users on other computers. So why are we doing it? – Because it’s fun!

how to hack facebook accounts

These Javascript snippets, which we’ll supply below, simply need to be pasted into the address bar. Hit enter, et voila!

Ads by Google

Changing Profile Colour

This will change the colour of your Facebook bar to a color of choice.

facebook greasemonkey scripts

Just paste the following code in your address bar and hit enter. You can replace ‘red’ with any color you want – black, white, green or even orrange. If you want to reverse the effect, press Ctrl+F5 for a hard reload of the page.

javascript:void(document.getElementById('fb_menubar').style.background='red');

View Chat History with Offline Friends

Unfortunately, you can’t normally view the chat history of online friends. If you’re trying to remember something that was said, waiting for them to come back online is one hell of a bother. Instead, you can just use this – pretty useful – Javascript hack.

First of all, we need to get your friend’s Facebook ID. When you visit his page indirectly (through your friends list or by using the search engine), you’ll be able to see it as a number in the address bar.

how to hack facebook

Another way to retrieve someone’s ID is by going to the Friends widget on their page, and right-clicking See All. Then you’ll have to copy the link location and paste it in your address bar.

how to hack facebook greasemonkey

Once you’ve got someone’s ID, simply paste the following code in your address bar, replacing 1122334455 with the relevant number.

javascript:buddyList.itemOnClick(1122334455);

fb

Other Javascript hacks

The preceding two hacks are without doubt the most impressive or useful ones. Below are some of the other tricks you can pull off by using Javascript. We’re not going to deep on this because they’re all things you can do manually as well.

Change chat status to invisible:

javascript:statusControl.sendVisibility(false);

Change chat status to visible:

javascript:statusControl.sendVisibility(true);

Close all chat windows with person 1122334455:

javascript:chatDisplay.tabs[1122334455].tabXOnClick();

Open application tab:

javascript:applicationDock.toggleTab();

Bring up notifications:

javascript:presence.toggleTab('chat_status_control','chat_status_control_tab');

Bring up friends list:

javascript:buddyList.toggleTab();

Facebook Greasemonkey Hacks

hack facebook account tips

Greasemonkey is one of the best firefox add-ons in existence. By using ‘userscripts’, you can customize nearly every website. Read more about Greasemonkey in .

Today we won’t be focusing too hard on Greasemonkey itself, but on some of the great Facebook-specific userscripts.

Facebook Auto-login – One of the simplest, but perhaps also one of the most useful userscripts you’ll find. This one will automatically log into Facebook, as long as Firefox remembers your password, saving you a lot of hassle.

Auto-Colorizer for Facebook – This script will recolor your Facebook page by applying the color scheme of the most dominant picture currently showing on the page. As you can imagine, this can create some exciting, and also ambient effects.

FacebookDeletes – If you want to get rid of a lot of people at once, this is your man. This script can bulk delete friends, making the masacre all the easier.

Remove All Facebook Ads – Adblock still tends to miss a lot of Facebook ads. This script, frequently updated, will remove all thinkable Facebook ads, creating a completely click-safe Facebook environment.

External Apps Blocker – One of the most irritating things on Facebook are the abundance of quizzes, quote generators, and the like. Filtering all external app ‘stories’ from your homepage will be a lot easier if you use this script.

Want some more? Userscripts hosts 1112 Facebook related userscripts at the time of writing. Check it out and have a blast!

If you know any other cool Javascript tweaks, or Greasemonkey hacks, feel free to mention them in the comments section below!

Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
Pinteresting Conversation
Pinteresting Conversation
7 Members
Can't Live Without WhatsApp
Can't Live Without WhatsApp
7 Members
Facebook Addicts
Facebook Addicts
10 Members
Instagrammer Central
Instagrammer Central
2 Members
Top Twitter Tips
Top Twitter Tips
5 Members
Hot Social Apps
Hot Social Apps
6 Members
Ads by Google
Comments (31)
  • Mihajlo

    At FB home page you can type:

    javascript:void($(“home_stream”).innerHTML=”);

  • God Zilla

    I need some help to get on someone elses facebook, because of embarassing photos that he/she will not delete. Can you help me?

  • maqi

    hi
    is there any script that can write the info i.e. profile info of my friends to a text file.

  • noname

    yes like many have said this is not hacking….

  • jurix

    thx, good to know.
    Could anyone help: is it possible to open multiple chatwindows with the javascript:buddyList.itemOnClick(…) comand. I mean it is possible to see the chat history of two, or more friends (two or more ID numbers)at once.
    Thanks for the answer

Load 10 more
Affiliate Disclamer

This review may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
Affiliate Disclamer

This review may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.