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.

Download – mask_facefook.user.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==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”

  1. Pingback: short term loans for bad credit
  2. 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?

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>