This is an old revision of the document!


Firefox

Firefox config optimizations

Firefox hardware acceleration

user.js

Mozillazine config entries explained

user.js file is located in your Firefox profile folder:

In Windows XP, the profile folder is \Documents and Settings\<username>\Application Data\Mozilla\Firefox\Profiles\<profile ID>.default\

In Windows Vista, this folder is \Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile ID>.default\

Note that Application Data and AppData are hidden folders by default, so they may not show up unless you force Explorer to show hidden objects. (Open the Control Panel, double-click Folder Options, select the View tab, select “Show hidden files and folders” and click OK.)

In Mac OS X, the profile folder is <username>/Library/Application Support/Firefox/Profiles/<profile ID>.default/

and in Linux it's ~/.mozilla/firefox/<profile ID>.default/

= Make Firefox 4.0beta (Minefield) work with “incompatible” plugins =

user_pref(“extensions.checkCompatibility.4.0b”, false);

(for release version use “extensions.checkCompatibility.4.0”)

  # no blinking text
  user_pref("browser.blink_allowed", false);
  #
  // 
  user_pref("network.http.pipelining", true); 
  user_pref("network.http.proxy.pipelining", true); 
  user_pref("network.http.pipelining.maxrequests", 8); 
  user_pref("network.http.pipelining.firstrequest", true);
  user_pref("network.http.request.max-start-delay", 0); 
  user_pref("network.http.max-connections", 48); 
  user_pref("network.http.max-connections-per-server", 16);
  user_pref("network.http.max-persistent-connections-per-proxy", 12); 
  user_pref("network.http.max-persistent-connections-per-server", 8); 
  // keep-alive timeout. default is 115
  user_pref("network.http.keep-alive.timeout", 30); 
  // Enable prefetching
  user_pref("network.prefetch-next", true);
  #
  user_pref("network.ftp.idleConnectionTimeout", 60);
  // Just to make sure, disable windows shell: protocol
  user_pref("network.protocol-handler.external.shell", false);
  #
  // DNS 
  user_pref("network.dnsCacheEntries", 1024);
  user_pref("network.dnsCacheExpiration", 300);
  #
  // Remove painting delay when loading pages. Default is 250 
  user_pref("nglayout.initialpaint.delay", 0);
  #
  user_pref("ui.submenuDelay", 50);
  #
  user_pref("content.notify.backoffcount", 5); 
  user_pref("content.notify.ontimer", true); 
  user_pref("content.interrupt.parsing", true); 
  user_pref("content.max.tokenizing.time", 2250000); 
  user_pref("content.notify.interval",750000);
  user_pref("content.maxtextrun", 8191);
  user_pref("content.switch.threshold", 750000);
  #
  # Cache
  user_pref("browser.cache.offline.enable", false);
  # Disable disk cache  - using only RAM
  #user_pref("browser.cache.disk.enable", false);
  user_pref("browser.cache.memory.enable", true);
  #
  # Specify the amount of memory cache:
  # -1 = determine dynamically (default), 0 = none, n = memory capacity in kilobytes
  user_pref("browser.cache.memory.capacity", 65535);
  # How many sites to remember for back/forward function
  user_pref("browser.sessionhistory.max_total_viewers", 3);
  #
  # Move Firefox out of working memory to swap memory on minimize. Windows ONLY!
  #user_pref("config.trim_on_minimize", true);
  #
  # Allow certain sites to acces local files
  user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
  user_pref("capability.policy.localfilelinks.sites", "pardus.at");
  user_pref("capability.policy.policynames", "localfilelinks");
  #
  # Location address functions
  user_pref("layout.word_select.eat_space_to_next_word", false);
  user_pref("layout.word_select.stop_at_punctuation",false);
  user_pref("browser.urlbar.clickSelectsAll", false);
  #
  user_pref("browser.search.openintab", true);
  user_pref("browser.tabs.closeButtons", 0);
  user_pref("browser.tabs.loadFolderAndReplace", false);
  user_pref("browser.tabs.tabMinWidth",80);

  // Open new windows in tab
  user_pref("browser.link.open_newwindow", 3);
  #
  #http://kb.mozillazine.org/Network.http.sendRefererHeader
  user_pref("network.http.sendRefererHeader", 1);
  # make all frames resizeable
  user_pref("layout.frames.force_resizability",true);
  # disable target="_blank" (open in same window):
  user_pref("browser.block.target_new_window", true);
  # Stop reusing active windows:
  user_pref("advanced.system.supportDDEExec", false);
  # do not close Firefox with last tab
  user_pref ("browser.tabs.closeWindowWithLastTab", false);
  // extensions/plugins/addons
  # do NOT scan for additional plugins on local computer
  user_pref ("plugin.scan.plid.all", false);
  user_pref("extensions.disabledObsolete", true);
  // disable addon countdown
  user_pref("security.dialog_enable_delay", 1);
  // Show full path for plugin file on about:plugins page
  // the full path was removed for security purposes, please keep that in mind
  // Note: showing full paths can be a security risk only use when debugging.
  user_pref("plugin.expose_full_path", true); 
  #
  # disable javascript annoyances
  ## user_pref("dom.disable_window_status_change", true); 
  user_pref("browser.jsannoyances.disabled", true);
  user_pref("dom.event.contextmenu.enabled", false);
  #
  user_pref("browser.display.show_image_placeholders", false);

  // Shows an error page instead of an error popup dialog
  //if you load multiple pages at the same the dialog box actually holds up the browser
  // using this will allow the other pages/elements to load for the rest of the pages
  user_pref("browser.xul.error_pages.enabled", true)

about_url

There are a few special URLs, which begin with about:, that you can type into the Location Bar of Firefox.

  • about: — The same page as “Help → About”.
  • about:about — Lists all these about: URLs (Mozilla Suite only).
  • about:blank — A blank page. Useful for setting as your homepage.
  • about:buildconfig — Reveals details about your Mozilla build options.
  • about:cache — Displays cache statistics.
  • about:cache?device=memory — Lists memory cache entries.
  • about:cache?device=disk — Lists disk cache entries.
  • about:cache-entry — Shows information about a cache entry. Used in about:cache links. Requires parameters.
  • about:config — GUI for modifying user preferences (prefs.js).
  • about:credits — The list of contributors to the Mozilla projects.
  • about:logo — Displays the Mozilla logo (Mozilla Suite only).
  • about:license — shows the Mozilla Public License and the Netscape Public License for the piece of software.
  • about:mozilla — The famous Book of Mozilla.
  • about:plugins — Lists all your plugins as well as other useful information.

Filing slovenian tax forms with Firefox 3 (linux)

Official instructions are here: http://edavki.durs.si/OpenPortal/Pages/Introduction/RequirementsJava.aspx

Signing app test page is here: http://edavki.durs.si/OpenPortal/CommonPages/Sign/IESign.aspx?id=test

Due to a bug in Java Firefox cannot communicate security protocols until 1.6.0-12. Ubuntu jaunty multiverse repository contains sun-java6-plugin and depends on jdk 1.6.0-13. The package works on 8.04 and 8.10. OpenSuSE has RPMs in factory and Fedora has them in testing. Since 1.6.0-12 you do not need libjss3.so or any of the jars from the page anymore!, as they get successfully downloaded automatically. Since 1.6.0-13, everything also works on amd64/x86_64. I've had to delete icedtea-gcjwebplugin on hardy and it's very likely also neccessary on intrepid and jaunty, as otherwise the openjdk gets used in which the jss3 cannot be used from within firefox due to bugs in security protocols (no matter what permissions you grant the edavki codebase, signing app still receives an exception when trying to set the security manager).

After installing the appropriate JDK, make sure you import your qualified certificate (but only if you didn't do this before - the java certificate store is in your home and if you kept it around, your certificates should still be here) and the sigov-ca (which the tax form signing code is signed with) into the java's certificate store (use the ControlPanel from JDK's bin dir, some distros will have a link to it from system settings menu). Make sure you use a certificate store password that you will still remember next year because you won't need it until then.

Granting permissions is not neccessary, but I did it anyway, as it saves you accepting some security dialogs (though in java 1.6.0-13 it seems these work properly and you only need to accept once if you mark the checkbox for “yes, always”). You can put these in .java.policy in your home if you care:

grant codeBase "https://edavki.durs.si/"
{
  permission java.lang.RuntimePermission "accessClassInPackage.org.mozilla.jss.util";
  permission java.lang.RuntimePermission "accessClassInPackage.org.mozilla.jss.crypto";
  permission java.lang.RuntimePermission "accessClassInPackage.org.mozilla.jss.pkcs11";
};

Slovenski prevod

Zaradi napake v Javi, ki je bila odpravljena z različico 1.6.0-12, je najlažje, če naložite novejšo različico Jave (gre tudi z 1.5, a le na 32 bitnih sistemih in le po obilnem pacanju po navodilih s spletne strani edavki).

V distribucijah, kjer je privzeto nameščen icedtea vtičnik, ga morate odstraniti, sicer se uporabit OpenJDK različica Jave, ki ne deluje pravilno.

Potem namestite novi JDK in novi vtičnik. Z različico 1.6.0-13 je Sun, opala, Oracle končno izdal tudi 64 bitno različico vtičnika za spletne brskalnike, zato zdaj rešitev deluje tudi na 64 bitnih distribucijah. V ubuntu jaunty odlagališču “multiverse” je na voljo paket sun-java6-plugin - dovolj je, da namestite tega in pakete odvisne od njega (to bo namestilo ustrezne različice Jave), v drugih distribucijah pa imate praviloma reči na voljo v samem paketu za JDK, lahko pa namestite tudi tistega, ki ga brezplačno ponuja Sun, opala, Oracle. Java iz ubuntu jaunty odlagališča preverjeno brezhibno deluje tudi v ubuntu intrepid in ubuntu hardy in verjetno tudi na debianu - pazite le, da ne nadgradite programja, dokler imate odlagališče ubuntu jaunty vpisano v vire programja (v /etc/apt/sources.list vnesite vrstico deb http://nl.archive.ubuntu.com/ubuntu/ jaunty multiverse , nato izvedite apt-get update in apt-get install sun-java6-plugin, potem pa vrstico pobrišite ali zakomentirajte in ponovno poženite apt-get update).

Po namestitvi morate (če niste tega že kdaj storili - shramba za certifikate se nahaja v vašem domačem imeniku in če ga vedno nosite s seboj, bodo certifikati že pripravljeni) uvoziti oba certifikata (vašega osebnega in sigov-ca, s katerim je programje podpisano) v Javino shrambo. Pri tem ne pozabite na varnost, hkrati pa pazite, da gesla ne pozabite, saj ga boste verjetno naslednjič uporabili šele čez eno leto!

To bi moralo biti za običajnega uporabnika dovolj: brskalnik vas bo na testni strani vprašal po dovoljenju za poganjanje programja založnika Hermes Softlab, kjer lahko z dodatno kljukico odgovorite, da se trajno strinjate, nakar bi se vam moralo izpisati magično sporočilo

Preverjanje komponente za digitalno podpisovanje Komponenta za digitalno podpisovanje je nameščena.

To je dovolj - zdaj se lahko prijavite v portal in tudi dejansko podpisujete dokumente, ki jih ustvarite. Obilo sreče!

Firefox 3 renders pages incorrect (linux)

Add the following to the device-section of your Xorg configurationfile:

Option "XAANoOffscreenPixmaps" "true"

Letting Firefox open new windows in a new tab instead

In the address-bar, enter “about:config”, then search for “browser.tabs.showSingleWindowModePrefs”. Double click on that line so that it becomes 'true'. Then open the preferences menu from the menu-bar. Go to “advanced” and then search for “Tools”: below there you can find “Force links that open new windows to open in…”, click the radio-button before “a new tab”. With these settings all new windows will go to a new tab unless it has features like different size or no toolbars. If you also want these kind of windows to be opened in a tab, go back to “about:config” and search for “browser.link.open_newwindow.restriction”. When found, set it to “0”.

Speeding up Firefox

check SQLoptimizer add-on!

Firefox insists on doing huge amounts of I/O when closing, as well as act slow when using the awesomebar, try the following (close down Firefox completely first):

    for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f ‘VACUUM;’; done


Win32 .bat file:

for %%v in (*.sqlite) do sqlite3 "%%v" VACUUM;

It’s harmless, no data will be lost: it compacts your sqlite databases.

cpu optimized builds

Firefox, Flash and Windows 7


Download flash and extract these files and copy them into your Fx plugins folder. Restart Fx when done.

NPSWF32.dll
NPSWF32_FlashUtil.exe
flashplayer.xpt

firefox.1279268413.txt.gz · Last modified: 2010/07/16 10:20 by greebo
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready