https://wiki.archlinux.org/api.php?action=feedcontributions&user=Yyf811124&feedformat=atomArchWiki - User contributions [en]2024-03-29T12:12:18ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Firefox/Tweaks&diff=12972Firefox/Tweaks2006-05-12T02:18:07Z<p>Yyf811124: </p>
<hr />
<div>[[Category:Desktop]]<br />
== FasterFox ==<br />
There is now a Firefox extension that will change most of the <code>about:config</code> entries for you. The easiest way to tweak Firefox is simply to install the FasterFox extension, which can be found [http://fasterfox.mozdev.org/ here.]<br />
<br />
<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><br />
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. <br />
== Little Firefox Knowledge Snippets==<br />
'''''PhrakTure'''''<br />
; References: [http://forums.mozillazine.org/viewtopic.php?t=53650 From Mozillazine]<br />
<br />
;Beginner's Information: All settings can be adjusted by browsing to "about:config"<br />
<br />
Table of Tweaks<br><br />
'''NOTE''' Values for connections (http, proxy, etc) should be tweaked and timed based on connection, these are setup for my 1.5Mb cable connection<br />
<br />
<table border="1" cellpadding="2" cellspacing="0"><br />
<tr><br />
<th>Key</th><br />
<th>Value</th><br />
<th>Description</th><br />
</tr><br />
<tr><br />
<td>network.http.pipelining</td><br />
<td>true</td><br />
<td>enable pipelining for normal connections</td><br />
</tr><br />
<tr><br />
<td>network.http.proxy.pipelining</td><br />
<td>true</td><br />
<td>enable pipelining for proxy connections</td><br />
</tr><br />
<tr><br />
<td>network.http.pipelining.maxrequests</td><br />
<td>8</td><br />
<td>maximum HTTP requests per pipeline</td><br />
</tr> <br />
<tr><br />
<td>content.notify.backoffcount</td><br />
<td>5</td><br />
<td>number of initial reflows during rendering</td><br />
</tr> <br />
<tr><br />
<td>ui.submenuDelay</td><br />
<td>0</td><br />
<td>context menu popup delay</td><br />
</tr> <br />
<tr><br />
<td>content.interrupt.parsing</td><br />
<td>true</td><br />
<td>enable interruption of parsing to return to the application's event loop</td><br />
</tr> <br />
<tr><br />
<td>content.max.tokenizing.time</td><br />
<td>2250000</td><br />
<td>time after which parsing is interrupted</td><br />
</tr> <br />
<tr><br />
<td>content.notify.interval</td><br />
<td>750000</td><br />
<td>time steps for the initial reflows (content.notify.backoffcount)</td><br />
</tr> <br />
<tr><br />
<td>content.notify.ontimer</td><br />
<td>true</td><br />
<td>enable timer based reflows</td><br />
</tr> <br />
<tr><br />
<td>content.switch.threshold</td><br />
<td>750000</td><br />
<td>keep same as content.notify.interval</td><br />
</tr> <br />
<tr><br />
<td>nglayout.initialpaint.delay</td><br />
<td>0</td><br />
<td>time before inital page reflow</td><br />
</tr><br />
<tr><br />
<td>network.http.max-connections</td><br />
<td>48</td><br />
<td>number of total HTTP connections</td><br />
</tr> <br />
<tr><br />
<td>network.http.max-connections-per-server</td><br />
<td>24</td><br />
<td>maximum number of any type of connections per server</td><br />
</tr> <br />
<tr><br />
<td>network.http.max-persistent-connections-per-proxy</td><br />
<td>12</td><br />
<td>maximum number of keep-alive type connections per proxy</td><br />
</tr><br />
<tr><br />
<td>network.http.max-persistent-connections-per-server</td><br />
<td>6</td><br />
<td>maximum number of keep-alive type connections per server</td><br />
</tr> <br />
<tr><br />
<td>browser.cache.memory.capacity</td><br />
<td>65536</td><br />
<td>size of memory to use as cache - set as big as you can for normal operation</td><br />
</tr><br />
<tr><br />
<td>network.dns.disableIPv6</td><br />
<td>true</td><br />
<td>disables IPv6 support - may not work for all networks, some report speed increase</td><br />
</tr> <br />
</table><br />
<br />
== User Script Hacks ==<br />
Firefox lets you edit the default UI by editing the user scripts in .mozilla/firefox/[userhash].[profilename]/chrome/<br />
<br />
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 :<br />
<pre><br />
/* Display the tabbar on the left */<br />
#content > tabbox {<br />
-moz-box-orient: horizontal;<br />
}<br />
<br />
.tabbrowser-strip {<br />
-moz-box-orient: vertical;<br />
/* note: you can set this to -moz-scrollbars-vertical instead,<br />
but then the scrollbar will *always* be visible. this way<br />
there is never a scrollbar, so it behaves like the tab bar<br />
normally does */<br />
overflow: -moz-scrollbars-none;<br />
}<br />
<br />
.tabbrowser-tabs {<br />
-moz-box-orient: horizontal;<br />
min-width: 20ex; /* you may want to increase this value */<br />
-mox-box-pack: start;<br />
-moz-box-align: start;<br />
}<br />
<br />
.tabbrowser-tabs > hbox {<br />
-moz-box-orient: vertical;<br />
-moz-box-align: stretch;<br />
-moz-box-pack: start;<br />
}<br />
.tabbrowser-tabs > hbox > tab {<br />
-moz-box-align: start;<br />
-moz-box-orient: horizontal;<br />
}<br />
<br />
/* remove the close-tab button */ <br />
.tabbrowser-tabs > stack {<br />
display: none;<br />
}<br />
</pre><br />
<br />
== Adding searchplugins ==<br />
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).<br />
<br />
To add engines to this list, you can either go [http://dtw.jiwe.org/share/arch here] or [http://www.mozilla.org/products/firefox/central.html#central-engines 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:<br />
<br />
===Archlinux Forums===<br />
<pre><br />
#----------------------------------------------------------------------<br />
# Author: hugelmopf<br />
# Arch_Forum.src<br />
#<br />
<br />
<search<br />
version="7.1"<br />
name="Arch Forum"<br />
description="Search within bbs.archlinux.org"<br />
method="GET"<br />
action="http://bbs.archlinux.org/search.php"<br />
searchForm="http://bbs.archlinux.org/search.php"<br />
><br />
<br />
<input name="mode" value="results"><br />
<input name="search_keywords" user=""><br />
<input name="search_terms" value="all"><br />
<input name="search_fields" value="all"><br />
<input name="search_time" value="0"><br />
<input name="sort_by" value="0"><br />
<input name="sort_dir" value="DESC"><br />
<input name="return_chars" value="200"><br />
<br />
</search><br />
</verbatim><br />
</pre><br />
<br />
===Archlinux Wiki===<br />
<pre><br />
#----------------------------------------------------------------------<br />
# Author: hugelmopf<br />
# Arch_Wiki.src<br />
#<br />
<br />
<br />
<search<br />
version="7.1"<br />
name="Arch Wiki"<br />
description="Search within wiki2.archlinux.org"<br />
method="GET"<br />
action="http://wiki2.archlinux.org/index.php/TitleSearch"<br />
searchForm="http://wiki2.archlinux.org"<br />
><br />
<br />
<input name="auto_redirect" value="1"><br />
<input name="nocache" value="purge"><br />
<input name="s" user=""><br />
<input name="sourceid" value="Mozilla-search"><br />
<br />
<br />
</search><br />
</pre><br />
<br />
===Archlinux Package Database===<br />
<pre><br />
<SEARCH<br />
version = "7.1"<br />
name="Arch Packages"<br />
description="ArchLinux package search"<br />
method="GET"<br />
action="http://www.archlinux.org/packages.php"<br />
seachform="http://www.archlinux.org/packages.php"<br />
><br />
<br />
<input name="s_keyword" user=""><br />
<input name="s_repo" value="all"><br />
<input name="s_category" value="all"><br />
<input name="s_lastupdate" value=""><br />
<input name="pp" value="50"><br />
<input name="sourceid" value="Mozilla-search"><br />
<br />
# Section crippled to prevent spurious parsing<br />
<interpret<br />
browserResultType="result"<br />
resultListStart="</body>"<br />
resultListEnd="</html>"<br />
><br />
<br />
</search><br />
</pre><br />
<br />
* Hint: How to change the order of your searchplugins list<br />
** 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 :-)<br />
<br />
===Archlinux AUR-Package Database===<br />
<pre><br />
<SEARCH<br />
version = "7.1"<br />
name="AUR Packages"<br />
description="AUR package search"<br />
method="GET"<br />
action="http://aur.archlinux.org/packages.php"<br />
seachform="http://aur.archlinux.org/packages.php"<br />
> <br />
<br />
<input name="K" user=""><br />
<input name="L" value="all"><br />
<input name="C" value="all"><br />
<input name="PP" value="50"><br />
<input name="sourceid" value="Mozilla-search"><br />
<br />
# Section crippled to prevent spurious parsing<br />
<interpret<br />
browserResultType="result"<br />
resultListStart="</body>"<br />
resultListEnd="</html>"<br />
><br />
</search><br />
</pre><br />
<br />
==Q: If Mozilla Thunderbird is open, Mozilla Firefox refuses to open.==<br />
<br />
<b>A: </b>This is a problem with the way that Firefox is packaged. Open <code>/usr/bin/mozilla-firefox</code> in your favourite text editor and comment out all lines of code. Add the following line instead:<br />
exec /opt/mozilla-firefox/bin/firefox ${1+"$@"}<br />
<br />
==How to prevent plugins from allowing popups?==<br />
<br />
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.<br />
<br />
<b>To get around it:</b><br />
<br />
# Type about:config into the Firefox location bar.<br />
# Right-click on the page and select New and then Integer.<br />
# Name it privacy.popups.disable_from_plugins<br />
# Set the value to 2.<br />
<br />
<b>The possible values are:</b><br />
<br />
* 0: Allow all popups from plugins.<br />
* 1: Allow popups, but limit them to dom.popup_maximum.<br />
* 2: Block popups from plugins.<br />
* 3: Block popups from plugins, even on whitelisted sites. <br />
<br />
=Common Problems=<br />
These problems are not bugs, just issues that may not be apparent.<br />
==Small fonts after upgrade==<br />
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.<br />
==Firefox hangs when trying to download files or images==<br />
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<br />
<pre><br />
-A INPUT -i lo -j ACCEPT<br />
</pre><br />
to your rules. This is due to the "famous GNOME/KDE loopback issue" which slows down all your GNOME and KDE activity.<br />
= External Links =<br />
* http://www.mozilla.org/support/firefox/tips<br />
<br />
{{Wikipedia|Mozilla_Firefox}}</div>Yyf811124