• Home
  • Directory
  • Answers
  • Geeky Fun
  • MakeUseOf Guides
  • Tech Deals

MakeUseOf.com

RSS Twitter Facebook
Subscribe to MakeUseOf. Now, 283276 members!
Aweber

How To Hack Your Facebook Account with Greasemonkey & Javascript

by Simon Slangen on Oct. 11th, 2009

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!

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!

 

(By) Simon is a student and tech enthusiast from Belgium. On MakeUseOf, he's one of the staff writers. Check Simon out @ http://meme.yahoo.com/slangen/

ShareThis

 

Enjoyed the article? Subscribe to MakeUseOf to get daily updates on new cool websites and programs in your email for free. You'll also get free printable cheat sheets to your favorite programs

Your Email:

Want a New HP LaserJet MFP? Trade in your old printer and receive up to $1,000 in saving on a new HP LaserJet Multifunction Printer. Click here for savings!

Similar Articles

  • How To Install A BuddyPress Social Network On Wordpress 3.0
  • What Do You Think Of The New DIGG? [MakeUseOf Poll]
  • Greasefire Shows Which Greasemonkey Scripts Work On Websites You Visit [Firefox]
  • How To Appear Invisible (Offline) on Facebook Chat
  • Why You Should Ditch Your MP3 Player’s Firmware In Favour Of Rockbox
  • 7 Twitter Archetypes You Just Love To Hate
  • View A Person’s Twitter Profile On Any Webpage
  • Update Your Twitter Feed With What Music You’re Listening To [Mac]
More about: Facebook . greasemonkey . hacks . javascript . profile . social networks

The comments were closed because the article is more than 90 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

View Comments

2009-10-11 09:28:40
Stefan

External Apps Blocker does not work. Please review your article or tell us any other way. I would love that script to work.
Thanks
S.Bardhi

(Comments wont nest below this level)
2009-10-11 09:40:13
Simon Slangen

Bummer.

You can still use http://userscripts.org/scripts/show/12393 to automatically filter all facebook app invites.

If you want to remove ALL notifications of a certain application from your homepage (including friends’ achievements, etc.), you’ll have to do something else:
* When hoovering over the notification with your mouse, you’ll see a button appearing in the topright corner (of the message).
* Click on it and select ‘Hide Program name‘.
* Voila, you’ll never receive anything about this app again.

2009-10-11 09:52:47
Stefan

yeah right, I do that, but 100000000 new applications rise everyday. That way, it is not efficient. Shame on facebook that does not WANT to put an option like “No quizzes/applications on your homepage”.

So, is there any way to block the quizzes/apps on your Homepage??

2009-10-11 10:22:27
Simon Slangen

It’s your lucky day. Check out UnFuck Facebook http://userscripts.org/scripts/show/11992

Feature overview
* App, Fan, Group, and Event invite blocking is done automatically without leaving the home page.
* Advertisement Removal
* Hide Applications in the Home Stream and even block them from appearing in the future.
* Hide App and Fan stories on profiles
* Hide one-sided wall stories on the home page
* Make the Home Page two columns
* Show status on the Home page
* Place the Highlights section below the others
* Hide App boxes and tabs on profiles
* Expand the width of the walls on profiles
* Remove rounded thumbnails
* Show older stories on the home page and on profiles automatically
* Use direct share links
* Hide App and Fan Highlights

If you don’t want your Facebook layout to be changed, or automatically block all event/fanpage invites:
* Go to facebook.com, with the script running
* Right-click the greasemonkey icon and select User Script Assignments – UnFuck FB Options
* Here you’ll be able to turn on/off all of the tweaks.

Hope this helped.

2009-10-11 11:34:09
noris

or google for facebook purity

2009-10-11 18:30:36
Stefan

Thank you simon

2009-11-13 11:13:41
mark

Hey guy, How can I hack another persons facebook account?

2009-11-13 15:58:34
Simon Slangen

Short answer? You don’t.

Long answer? You can try brute force until FaceBook notices the unusually high ‘activity’ and gives you a permanent ban.
But if you’re a really sneaky bastard? By using a keylogger or waterboarding the target.

Then again, you can just… Don’t.

2009-11-13 16:06:37
z0iid

@mark – It isn’t an easy process, definitely not for a weak person. You will need to stay awake for long periods. But I can help you out – create a dummy account, or we can test with yours, doesn’t matter, whatever works for you. then put your user login name here, then your password – BUT NOTE – put the password inside of this type of bracket box: “” again, no quotes. This way, the password won’t show up for everyone in your post, only I will be able to view it and help you out.

cheers.

2009-11-13 16:08:11
z0iid

it cut out my code, let me try again:

“$#$,” (without the quotes) then “^&hide_bold_&$z0iid^” and then close it with “$#$”

2009-12-16 14:36:49
nick

wow z0iid you dont get the simplest thing ive seen all day… congrats bro.

2009-12-22 08:32:34
z0iid

@nick – you don’t get sarcasm do you… congrats bro. most of the comments on here are idiots trying to “hack” into someone elses fb account. if you don’t “get” how I am poking fun at them… then you are as dumb as them… congrats bro.

2009-10-11 13:09:19
RougeCrown

Just go to lite.facebook.com. It actually makes facebook what it originally is.

All hail lite facebook!

(Comments wont nest below this level)
2009-10-11 13:15:41
mchlbk

FB Purity: Removes annoying quiz and application messages from your facebook homepage.

On the top right you will see the number of application messages blocked. This is my favourite Greasemonkey script.

http://userscripts.org/scripts/show/44459

(Comments wont nest below this level)
2009-10-11 14:06:06
OhMyGosh

This article is the most idiotic thing ive ever seen. An egregious use of the word “hack”. Open source??? That’s what open source stands for. Facebook is “open”, if you were even a touch technically knowledgeable you would know that. The API even has a wiki, it may not be in 4th grade English, but it’s there and documented. Stick to myspace or geocities (is that even still around?).

IDIOTS

(Comments wont nest below this level)
2009-10-11 23:53:11
anonymous

hey d-bag “hack” got your attention enough to click to the article then read & comment which means the word did its job.

You should be the one returning to myspace or die like geocities.

If you don’t like the article don’t read it, if you gonna complain make your own site to prove you better.

idiot

2009-10-19 22:20:55
....

for an article trying to help people it seems a little odd that the writer used a cheap trick to attract readers. This was definitely written thinking it was hacking (which it absolutely is not)why would the writer keep using the word hack in section titles and why would the Title be How to hack your Facebook account if the writer knew it wasn’t hacking. I know it attracted readers but this article is informative it isn’t supposed to trick people into reading it its as if you bought how to install your own plumbing for dummies and all the chapters were on making your plumping system run faster. this article is BS

idiot

2009-10-11 16:35:51
geeknik

Remove All Facebook Ads is frequently updated? It hasn’t been updated since January. Whatever.

(Comments wont nest below this level)
2009-10-11 19:59:43
morlavjacquline

thanks for shared. Great.

(Comments wont nest below this level)
2009-10-11 20:29:56
JavaScript Countdown Timer

very cool tut, thank you very much for sharing. But I think these things are just for funny

Can I share this snippet on my JavaScript library?

Awaiting your response. Thank

(Comments wont nest below this level)
2009-10-12 05:38:16
mjw

that just for fun.
is there any code, so Facebook user can see, who’s viewing their profile?

(Comments wont nest below this level)
2009-10-12 09:52:02
Simon Slangen

‘fraid not.

News Feed and Mini-Feed will never
publish stories about:

* Pokes
* Messages
* Whose profile you view
* Whose photos you view
* Whose notes you read
* Groups and Events you decline to join
* People you reject as friends
* People you remove from your friends
* Notes and photos you delete

2009-10-12 08:40:58
Terri

Was just looking for a way to see the friend requests I’ve sent (not just invitations to people who don’t already have an account). Anyone know how to do that?
-Terri

(Comments wont nest below this level)
2009-10-12 16:55:21
z0iid

facebook fixer gm script.

(Comments wont nest below this level)
2009-10-14 06:59:28
Rizkhan

hey i wanna know how to hack apersons facebook account with password
let me know geniuses

(Comments wont nest below this level)
2009-10-16 10:57:20
jack kirbala

another vote for facebook purity! fantastic script! it even has a whitelist function for those app messages you dont want to miss! :D http://bit.ly/fbpure

(Comments wont nest below this level)
2009-10-19 13:28:33
yasar

i need to hack this facebook account

(Comments wont nest below this level)
2009-10-24 02:46:47
michael

is there a userscript that shows cleared facebook-chat logs, recent people you chatted with, etc.???

(Comments wont nest below this level)
2009-10-28 12:32:17
ama

hi, my boyfriend hack my All old chat history on facebook, and he won’t tell me how to do that, can you guy’s tell me how to see my all old chat history on Facebook, oh yach, he can see anything I already did on FB like search and my delete message too…

(Comments wont nest below this level)
2009-10-28 12:54:15
mchlbk

@ama: The only way he can see those things is if he has access to your account. You should get yourself a new (and hard to guess) password immediately.

2009-10-30 00:15:43
Amy

I THOUGHT THIS ARTICLE WAS ABOUT HOW TO HACK PEOPLES FACEBOOK PASSWORDS ACCOUNTS??!

(Comments wont nest below this level)
2009-10-30 03:53:29
mchlbk

“How To Hack Your Facebook Account…”

*Your* Facebook account.

How exactly does that indicate that this is an article about hacking other people’s accounts?

2009-10-30 00:17:05
Amy

DONT WORRY, I FOUND THIS TUTORIAL BY CHANCE…THANKS ANYWAY;

http://how-to-hack-face-book-accounts.angelfire.com/

(Comments wont nest below this level)
2009-10-30 03:47:46
mchlbk

Dude you need to hit the caps lock key.

And why would you want access to other people’s FB accounts? That’s just stupid.

2009-12-16 14:44:38
nick

cuz sheez a little girl that got too hyped up on shgr and ran to the computer and started typin shit… she cant help it XD

2009-11-02 06:18:56
mark

i just hope you are smarter then to fall for that junk. all that would be is someone trying to get your informaion, and depending on how open you and your friends are on facebook, they could pretty much find out anything they could ever want. i would change my password NOW.

2009-11-08 14:51:59
niGht wHaTcha

did you guys get my last msg?

(Comments wont nest below this level)
2009-11-13 03:03:03
Jangjong

Bro how about adding Group Fans, it is possible…
to add all the fans of one application… thanks
waitng for response

(Comments wont nest below this level)
2009-11-24 12:29:00
naresh

ineed to know how crack gmail account…………plz help me

(Comments wont nest below this level)
2009-11-24 12:58:20
mchlbk

Call your local police. They will be happy to help you.

2009-11-26 11:40:13
Mani

I want to hack facebook id ….of my friend …v hav achallnege so what shudld i do ? plz repli me

(Comments wont nest below this level)
2009-11-29 09:11:47
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

(Comments wont nest below this level)
2009-12-19 20:52:49
naky

how can i hack other facebook acct please tell me T_T

(Comments wont nest below this level)
2009-12-21 09:32:34
noname

yes like many have said this is not hacking….

(Comments wont nest below this level)
2009-12-21 10:52:09
maqi

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

(Comments wont nest below this level)
2009-12-21 16:20:04
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?

(Comments wont nest below this level)
2009-12-30 04:07:15
sTyLeS oF bEyOnD

i heard lite facebook really blows

(Comments wont nest below this level)
2010-01-17 07:36:22
Sara ali

23

(Comments wont nest below this level)
2010-01-26 05:13:21
Mihajlo

At FB home page you can type:

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

(Comments wont nest below this level)
2010-02-11 13:26:35
megas

eisai malaks???

(Comments wont nest below this level)

The comments were closed because the article is more than 90 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

blog comments powered by Disqus
Advertise Here
TopicsMUO Guides
  • Browser Tips
  • Cool Software
  • Web Apps
  • Best of Lists
  • How-To Tips
  • Windows
  • Mac
  • Linux
  • Gaming
  • Mobile Apps
  • Polls
  • Geeky Fun
  • BitTorrentThe Easy Guide
  • iPhoneUnofficial Manual
  • iTunesThe Big Book
  • LinuxGetting Started
  • MacBeginner's Guide
  • MoviesFor Movie Addicts
  • PC BuildingThe Idiot's Guide
  • ProductivityProductivity Guide
  • PhotoshopThe Idiot's Guide
  • TwitterBest Tips & Tricks
  • More Guides
Follow us on Twitter
Be Our Friend on Facebook
MakeUseOf Staff
Editors:
  • Editor in ChiefAibek Esengulov
  • MakeUseOf Directory's EditorKaly
  • Managing EditorMark O'Neill
  • Assistant EditorJackson Chung
  • MUO WP GuyJorge Sierra
  • PDF ManualsJustin Pot
  • Promotion & SEORyan Dube
  • MakeUseOf NewsletterSaikat Basu
  • MakeUseOf Answers EditorTina Sieber
Staff Authors:
  • Tina Sieber
  • ( timbrookes.co.uk )Tim Brookes
  • ( The Things I Do )Saikat Basu
  • ( simonslangen.com )Simon Slangen
  • ( Free Writing Center )Ryan Dube
  • ( Super Subconscious)Jeffry Thurana
  • ( Mac Photography Tips )Bakari Chavanu
  • ( timmyjohnboy.com )Tim Lenahan
  • ( JustinPot.com )Justin Pot
  • ( Social Branding Blog )Steven Campbell
  • ( diptychal )Nancy Messieh
  • ( SmidgenPC )Matt Smith
  • Jessica Cam Wong
  • ( SEO Smarty )Ann Smarty
  • ( Net Savoir )Angela Alcorn
  • Other Active Authors ...
© 2010 MakeUseOf. Designed by kailoon About UsContactAdvertiseSubmit AppArchivesMobilePrivacy