Firefox tweaks

From ArchWiki
Revision as of 03:37, 24 July 2005 by Cactus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

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 [[|http://dtw.jiwe.org/share/arch here||http://www.mozilla.org/products/firefox/central.html#central-engines]] 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. Here they are for you to use:
 ! Archlinux Forums
   <verbatim>
   #----------------------------------------------------------------------
   # 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
   <verbatim>
   #----------------------------------------------------------------------
   # 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>
   </verbatim>
 ! Archlinux Package Database
   <verbatim>
   <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>
   </verbatim>
 ! 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 :-)

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:

<verbatim> exec /opt/mozilla-firefox/bin/firefox ${1+\"$@\"} </verbatim>