Firefox middle mouse button can close tabs


Forum: DSL Tips and Tricks
Topic: Firefox middle mouse button can close tabs
started by: humpty

Posted by humpty on Mar. 06 2006,23:30
For those (like me) who are used to closing tabs in Firefox using the middle mouse button, instead of that pesky URL paste function; do this :-

enter "about:config" in the address bar
Filter for the word "middle"
middlemouse.content:LoadURL will be "true", just double click it to "false".
restart FireFox.

Posted by SShadow on April 04 2006,14:01
Sweet!  Thank you very much!

Now, to get the scroll wheel working...  Off to search again!

Posted by mikshaw on April 04 2006,14:17
That is sweet.  Even if it didn't have the close tab feature, I still like it just to disable the middle-click URL paste.  I can't say how many times I've attempted to middle-click a link to open it in a new tab, only to miss the mark slightly and have my page be replaced by some worthless and unrelated content.  The only pasting i want to see is when clicking in a text field.
Posted by iforonedsl on April 11 2006,02:47
Hi all;
I'm new to this forum (so perhaps somethings are already mentioned elsewhere here) - but I'm a huge fan of about:config for customizing Firefox, Mozilla, and yes, even Epiphany (GNOME based on Mozilla)...

I'm using DSL v1.1(acccording to "Dillo") and FF v0.9.1
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040630 Firefox/0.9.1

If you want all flashing/rotating "images" (such as animated GIFs) to stop, do this;
type image in the "Filter" bar once you load about:config in a separate tab -- whatever search term you put into the "Filter" box, will help you narrow down your choice settings, and make finding these/those specific settings easier.

notice this setting;
image.animation_mode
change "normal" to "none" :)

Here's some more changes I do to ALL my FF/Moz browsers;
middlemouse.paste = false

middlemouse.contentLoadURL = false
# Already Posted by Humpty

middlemouse.openNewWindow = false

type in the Filter box;
dom.disable...
EVERY setting (16 of them) that starts with *dom.disable* ONLY - should be set to true

This overrides ALL the stupid JavaScript in web pages ( from Windows/Tabs/Clicks that Javascript opened) that do NOT allow you to
* Resize the window
* Toolbars = missing
* Menu bar = missing
* Right click to gain access to Context menu = Unable
* Minimize = missing
* Scrollbars = missing
etc, etc, etc

I personally turn OFF all the Java and Javascript anyway (in the GUI) -- but there are many that are not located in the GUI -->
Edit | Preferences | Advanced | Javascript | Advanced
(you'll notice there are only 5 there - whereas in about:config, there's 16 of them. I tried to take a screenshot just now, to illustrate which ones the GUI allows you to disable, but it's not working too well t the moment...anyway, I'll surely add more, as I return, and get this DSL configured correctly.

Posted by mikshaw on April 11 2006,19:23
Another useful firefox config (in my opinion)....

I don't like icons, and get rid of them wherever I can.  The icons in the firefox bookmarks menu and tabs can be removed (not just replaced with a default icon) by adding this to userChrome.css:
Code Sample
/* kill all bookmark icons */
.bookmark-item > .menu-iconic-left {
 display: none;
}
/* kill all tab icons */
.tabbrowser-tabs .tab-icon {
 display: none;
}

I still don't know how to remove the icon from the address bar.

Posted by iforonedsl on April 12 2006,02:35
Quote

Another useful firefox config (in my opinion)....

I don't like icons, and get rid of them wherever I can.  The icons in the firefox bookmarks menu and tabs can be removed (not just replaced with a default icon) by adding this to userChrome.css:
Code Sample
/* kill all bookmark icons */
.bookmark-item > .menu-iconic-left {
 display: none;
}
/* kill all tab icons */
.tabbrowser-tabs .tab-icon {
 display: none;
}

I still don't know how to remove the icon from the address bar.


I haven't looked into the location bar icon at all, but it seems to me, the Location Bar icon is some sort of an "element" (not just an favicon.ico file or a GIF, JPG, PNG), since it can be dragged and dropped to bookmark a site, etc.
If I come across anything more about it, I gladly post the info....but I can *almost* say for certain [about:config] won't help with that, ....and perhaps even the [userC*.css] and [*.js] files (likely located in the $Profile and $Profile/chrome Dir(s)) won't either. I just don't know. IIRC - XUL is what is necessary to learn/know.

I too use customized 'userChrome.css' and 'userContent.css' files to make the interface do what I need to - I'm not an 'expert' at it, but I manage -- and I've also modified 'User.js' and 'Prefs.js' as well. Most of these mods I've done when booted into and using Mozilla on win98 -  In GNU/Linux these (files, for modifying) seem to be in many varying locations throughout diff distros and versions....(and/or just non-existent). I have Debian 3.1r1 installed  and have and use the LiveCDs of Knoppix3.6 and DSL 1.1.

I'm still pretty new to linux, but I'm learning quite a bit over the last few months, and I've already seriously borked a few installations and had to redo them (along with the dual boot OS - it's a really l-o-n-g story - but I can tell you that 'dd', 'cfdisk' 'e2fsck', 'Grub', and other assundry sysadmin commands and aspects were involved, including Ext'd partitions)...but I certainly learned quite a bit and recommend a HDD install, and then learn how the LiveCDs use cloop, /ramdisk, /target, autofs, automount, etc, etc -- in order to do what they do so well (which is load into RAM and just 'work', and without touching anything else on your HDDs, unless you actually *make* it do so, using various commands).

Posted by mikshaw on April 16 2006,15:57
Found it on the firefox forums =o)
Code Sample
/* hide favicon placeholder in Address url toolbar */
#page-proxy-deck {
display: none !important;
}


Also found out how to get rid of that horrible, slow, inefficient gtk2 file picker in Firefox 1.5...
In <path_to_firefox>/components/nsFilePicker.js, the original contains this:
Code Sample
//@line 278 "/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/xpfe/components/filepicker/src/nsFilePicker.js.in"
                                   "",


and it needs to be this:
Code Sample
//@line 278 "/builds/tinderbox/Fx-Mozilla1.8.0/Linux_2.4.21-37.ELsmp_Depend/mozilla/xpfe/components/filepicker/src/nsFilePicker.js.in"
                                   FILEPICKER_CONTRACTID,


I'm happy again.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.