Mask Facebook Title and Favicon – Greasemonkey

There are times where you don’t want to show that you are on Facebook. I decided to create a simple Greasemonkey script to do just that. This script removes the favicon — that icon that shows in the tab — and it also sets the title to “Page Not Found – Facebook.com”. Hope it has some use for some.

// ==UserScript==// @name Mask Facebook// @namespace http://jaybachatero.com// @description This script will remove the favicon and the page title from Facebook.// @include http://*.facebook.com/*// @include http://facebook.com/*// @include https://*.facebook.com/*// @include https://facebook.com/*// @version 0.1// ==/UserScript==// Set the form values.var link = document.createElement('link');
link.setAttribute('rel','shortcut icon');
link.setAttribute('href','');var head = document.getElementsByTagName('head')[0];
head.appendChild(link);// Set the title by default.
document.title='Page Not Found - Facebook.com';// Lets make sure the title is updated every 5 seconds in case an IM is received.
setTimeout(function(){
document.title='Page Not Found - Facebook.com';},5000);

2 thoughts on “Mask Facebook Title and Favicon – Greasemonkey”

I am trying to get my favicon file onto my published website. I used iWeb to build it, and little oak for hosting. Little Oak hosting does not allow me to place anything at the root level. I have Transmit, and I tried planting the favicon.ico file in the file folders for the individual pages, but that didnâ€™t seem to do anything. Do you have any suggestions I can try?