Monday, March 22, 2010

How to Remove "Send Link" in Firefox

"Send Link" is a pernicious trap for Firefox users that appears whenever the right mouse button is clicked on a link. If this option is chosen, Internet Explorer may load over fifty instances of itself, requiring a power-down of the computer in order for the user to regain control.

The following fix works in Firefox 3.6 and probably previous versions.

In Windows Explorer, navigate to the "C:\Program Files\Mozilla Firefox" folder. Search for "userchrome*.css". (However, see the note below about a possible alternative location.) You may find a file named "userchrome-example.css". Open that file up in a text editor such as Wordpad. Opening it in Notepad may prove problematic due to the way the program interprets certain characters. Add the following text:

/* Remove 'Send Link' from context menu*/
menuitem#context-sendlink {
display: none !important;
}

Save the file in the same directory* as "userchrome.css".

From now on, no more "Send Link," which was always a bad idea in the first place. I believe it is an option added by Microsoft Office, although I'm not sure.

There may be complications to this fix. On one computer, I discovered that userchrome.css lives in a different place, in the "Documents and Settings" folder. To determine where Firefox polls your userchrome.css, go to Tools | Error Console and enter the following:

alert(Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path);

This will reveal the precise location of userchrome.css.


*On my computer, the directory was "C:\Program Files\Mozilla Firefox\defaults\profile\chrome".

3 comments:

Unknown said...

this is not working

firefox 3.6.3

C:\Program Files\Mozilla Firefox\defaults\profile\chrome

userchrome.css
or
usercontent.css

neither changes anything

Unknown said...

http://menueditor.mozdev.org/

try this add-on .it is much easier to use and doesn't require admin priv. and changing of security of folders files of any sort

igor said...

I had difficulty getting this to work as well.

I would like also to change the "Edit" from right-click that loads Microsoft Word, to have it load Notepad++ instead. Nine times out of ten, I am editing an html file, something I cannot allow Microsoft Word to do because it tampers with the html code, inserting a multitude of Microsoft nonsense.

techlorebyigor is my personal journal for ideas & opinions