Thursday, September 23, 2010

Disable Facebook Chat FOREVER! [ Chrome ]



Well it happened to me that sometimes the Facebook chat would enable itself out of nowhere in Google Chrome and it was very bothersome [ I think it's something around this line in the FB script: Event.listen(DOM.find(this.buddyListPanel,'#buddy_list_panel_settings_control a'),'click',c);},_clickVisibilityToggle:function(){chatOptions.toggleVisibility();this.closeOpenFlyout();} ], so I made the above script to disable it once and for all. You'd first need to disable it manually, close that window [ without logging out ], install the above script and that's it, you should NEVER see your chat enable itself magically.

If you're half as paranoid as I am [ HAH! ] you might want to take a look at the script and see for yourself that it's not storing anything from your account, all it does is check if you are on facebook, have the chat and if you have it KEEP IT DISABLED [ like you did manually ]:

Code:
// ==UserScript==
// @match http://*.facebook.com/*
// @match http://www.facebook.com/*
// ==/UserScript==
if(chatOptions){
chatOptions.setVisibility(false);
}else{
alert("No chatOptions!");
}

that's all it does so... well I hope somebody might find it useful, I know I did! :P here's the link again in case you missed it:
You'll need to have Chrome 4 at least.

4 comments:

Anonymous said...

and about other browsers? How can we block facebook chat for them?

ryouji_shiki said...

Uhm maybe you would like to see this one for Firefox
http://userscripts.org/scripts/show/52278

... I will Google one for IE later...

Alex said...

What do you do with that code???

ryouji_shiki said...

I'm not sure this works anymore, I just prevent it from being "visible" at any point, if you have singed out you will never be signed in automatically again.