Difference between revisions of "Firefox tweaks"

From ArchWiki
Jump to: navigation, search
m
m (rm spam, spammer: Yyf811124)
Line 4: Line 4:
  
 
<em><strong>Note:</strong> There is quite a bit of debate about the merits of FasterFox's "prefetch" function.  If a lot of people begin using it, it could drive smaller websites under with enormous bandwidth costs.  Many small website owners are beginning to ban Firefox+FasterFox users as a result.  Please read the FasterFox [https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=1269&&page=comments user comments] before enabling the "prefetch" feature in this plugin.</em>
 
<em><strong>Note:</strong> There is quite a bit of debate about the merits of FasterFox's "prefetch" function.  If a lot of people begin using it, it could drive smaller websites under with enormous bandwidth costs.  Many small website owners are beginning to ban Firefox+FasterFox users as a result.  Please read the FasterFox [https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=1269&&page=comments user comments] before enabling the "prefetch" feature in this plugin.</em>
Network Digital Video Cameras Ethernet network cameras for Distributed CCTV Applications. For more information on our [http://www.versax.net/network-cameras/sell-network-camera.html network cameras] just click here to go our network cameras Section.
+
 
 
== Little Firefox Knowledge Snippets==
 
== Little Firefox Knowledge Snippets==
 
'''''PhrakTure'''''
 
'''''PhrakTure'''''

Revision as of 02:19, 12 May 2006

FasterFox

There is now a Firefox extension that will change most of the about:config entries for you. The easiest way to tweak Firefox is simply to install the FasterFox extension, which can be found here.

Note: There is quite a bit of debate about the merits of FasterFox's "prefetch" function. If a lot of people begin using it, it could drive smaller websites under with enormous bandwidth costs. Many small website owners are beginning to ban Firefox+FasterFox users as a result. Please read the FasterFox user comments before enabling the "prefetch" feature in this plugin.

Little Firefox Knowledge Snippets

PhrakTure

References
From Mozillazine
Beginner's Information
All settings can be adjusted by browsing to "about:config"

Table of Tweaks
NOTE Values for connections (http, proxy, etc) should be tweaked and timed based on connection, these are setup for my 1.5Mb cable connection

Key Value Description
network.http.pipelining true enable pipelining for normal connections
network.http.proxy.pipelining true enable pipelining for proxy connections
network.http.pipelining.maxrequests 8 maximum HTTP requests per pipeline
content.notify.backoffcount 5 number of initial reflows during rendering
ui.submenuDelay 0 context menu popup delay
content.interrupt.parsing true enable interruption of parsing to return to the application's event loop
content.max.tokenizing.time 2250000 time after which parsing is interrupted
content.notify.interval 750000 time steps for the initial reflows (content.notify.backoffcount)
content.notify.ontimer true enable timer based reflows
content.switch.threshold 750000 keep same as content.notify.interval
nglayout.initialpaint.delay 0 time before inital page reflow
network.http.max-connections 48 number of total HTTP connections
network.http.max-connections-per-server 24 maximum number of any type of connections per server
network.http.max-persistent-connections-per-proxy 12 maximum number of keep-alive type connections per proxy
network.http.max-persistent-connections-per-server 6 maximum number of keep-alive type connections per server
browser.cache.memory.capacity 65536 size of memory to use as cache - set as big as you can for normal operation
network.dns.disableIPv6 true disables IPv6 support - may not work for all networks, some report speed increase

User Script Hacks

Firefox lets you edit the default UI by editing the user scripts in .mozilla/firefox/[userhash].[profilename]/chrome/

You can place your tabs horizontally stacked along the sides of your browser window with this added to your .mozilla/firefox/[userhash].[profilename]/chrome/userChrome.css :

    /* Display the tabbar on the left */
    #content > tabbox {
        -moz-box-orient: horizontal;
    }

    .tabbrowser-strip {
        -moz-box-orient: vertical;
        /* note: you can set this to -moz-scrollbars-vertical instead,
           but then the scrollbar will *always* be visible.  this way
           there is never a scrollbar, so it behaves like the tab bar
           normally does */
         overflow: -moz-scrollbars-none;
    }

    .tabbrowser-tabs {
        -moz-box-orient: horizontal;
        min-width: 20ex;   /* you may want to increase this value */
        -mox-box-pack: start;
        -moz-box-align: start;
    }

    .tabbrowser-tabs > hbox {
        -moz-box-orient: vertical;
        -moz-box-align: stretch;
        -moz-box-pack: start;
    }
    .tabbrowser-tabs > hbox > tab {
        -moz-box-align: start;
        -moz-box-orient: horizontal;
    }

    /* remove the close-tab button */   
    .tabbrowser-tabs > stack {
        display: none;
    }

Adding searchplugins

Firefox makes it very easy to extend the search bar (right next to the URL), which it provides for easy access to all kinds of web searches. All search engines that appear in this list have a corresponding entry in /opt/mozilla/lib/firefox-xx/searchplugins (one .src and one .png file for each search engine).

To add engines to this list, you can either go here or here and install one of the available engines by just clicking on it (don't forget to make the /opt/mozilla/lib/firefox-xx/searchplugins folder writable first, or new searchplugins won't get installed!), or you can create/copy a .src-file into this .../searchplugins folder yourself together with a .png graphic of the same name. I have created a few .src-files for searches that Archlinux users might be interested in. DibbleTheWrecker made appropriate graphics for these plugins from the Arch Wiki/Forum logo, which can be downloaded. Here they are for you to use:

Archlinux Forums

    #----------------------------------------------------------------------
    # Author: hugelmopf
    # Arch_Forum.src
    #

    <search
    version="7.1"
    name="Arch Forum"
    description="Search within bbs.archlinux.org"
    method="GET"
    action="http://bbs.archlinux.org/search.php"
    searchForm="http://bbs.archlinux.org/search.php"
    >

    <input name="mode" value="results">
    <input name="search_keywords" user="">
    <input name="search_terms" value="all">
    <input name="search_fields" value="all">
    <input name="search_time" value="0">
    <input name="sort_by" value="0">
    <input name="sort_dir" value="DESC">
    <input name="return_chars" value="200">

    </search>
    </verbatim>

Archlinux Wiki

    #----------------------------------------------------------------------
    # Author: hugelmopf
    # Arch_Wiki.src
    #


    <search
    version="7.1"
    name="Arch Wiki"
    description="Search within wiki2.archlinux.org"
    method="GET"
    action="http://wiki2.archlinux.org/index.php/TitleSearch"
    searchForm="http://wiki2.archlinux.org"
    >

    <input name="auto_redirect" value="1">
    <input name="nocache" value="purge">
    <input name="s" user="">
    <input name="sourceid" value="Mozilla-search">


    </search>

Archlinux Package Database

    <SEARCH
      version = "7.1"
      name="Arch Packages"
      description="ArchLinux package search"
      method="GET"
      action="http://www.archlinux.org/packages.php"
      seachform="http://www.archlinux.org/packages.php"
    >

    <input name="s_keyword" user="">
    <input name="s_repo" value="all">
    <input name="s_category" value="all">
    <input name="s_lastupdate" value="">
    <input name="pp" value="50">
    <input name="sourceid" value="Mozilla-search">

    # Section crippled to prevent spurious parsing
    <interpret
        browserResultType="result"
        resultListStart="</body>"
        resultListEnd="</html>"
    >

    </search>
  • Hint: How to change the order of your searchplugins list
    • I created the folders A, B, C, D, E, ... within .../searchplugins and dropped the .src and .png files of each searchplugin into one of these folders. Now they are in order :-)

Archlinux AUR-Package Database

    <SEARCH
      version = "7.1"
      name="AUR Packages"
      description="AUR package search"
      method="GET"
      action="http://aur.archlinux.org/packages.php"
      seachform="http://aur.archlinux.org/packages.php"
      > 

      <input name="K" user="">
      <input name="L" value="all">
      <input name="C" value="all">
      <input name="PP" value="50">
      <input name="sourceid" value="Mozilla-search">

      # Section crippled to prevent spurious parsing
      <interpret
        browserResultType="result"
        resultListStart="</body>"
        resultListEnd="</html>"
      >
    </search>

Q: If Mozilla Thunderbird is open, Mozilla Firefox refuses to open.

A: This is a problem with the way that Firefox is packaged. Open /usr/bin/mozilla-firefox in your favourite text editor and comment out all lines of code. Add the following line instead:

exec /opt/mozilla-firefox/bin/firefox ${1+"$@"}

How to prevent plugins from allowing popups?

Ever wondered why popups appear even though you've blocked them? It seems that Flash plugin can bypass default settings and annoy us with those pesky popups. Fear not, for we can prevent it from doing that.

To get around it:

  1. Type about:config into the Firefox location bar.
  2. Right-click on the page and select New and then Integer.
  3. Name it privacy.popups.disable_from_plugins
  4. Set the value to 2.

The possible values are:

  • 0: Allow all popups from plugins.
  • 1: Allow popups, but limit them to dom.popup_maximum.
  • 2: Block popups from plugins.
  • 3: Block popups from plugins, even on whitelisted sites.

Common Problems

These problems are not bugs, just issues that may not be apparent.

Small fonts after upgrade

After upgrading to xorg7 some users have had fonts become too small in firefox. Edit > Preferences > Content > Fonts & Colors > Advanced > Display resolution > System setting fixes the problem. Just changing the default fonts around doesn't.

Firefox hangs when trying to download files or images

If you use the deafault supplied simple_firewall.rules with iptables for your firewall and you have gnome-vfs installed you might be in trouble. Quoting Jan De Groot: "gnome-vfs calls FAM. To find out if FAM is reachable, it tries to contact portmap... which will take ages when your localhost interface is firewalled." So add something like

-A INPUT -i lo -j ACCEPT

to your rules. This is due to the "famous GNOME/KDE loopback issue" which slows down all your GNOME and KDE activity.

External Links

Template:Wikipedia