Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
firefox [2011/01/20 19:17]
90.157.176.243
firefox [2014/01/30 10:27] (current)
zagi [Speeding up Firefox]
Line 1: Line 1:
 ====== Firefox ====== ====== Firefox ======
  
-[[firefox addons]]\\+[[firefox:addons]]\\
 [[greasemonkey]]\\ [[greasemonkey]]\\
 [[firefox#about_url|about_url]]\\ [[firefox#about_url|about_url]]\\
 [[firefox#cpu optimized builds|Firefox CPU optimized builds]]\\ [[firefox#cpu optimized builds|Firefox CPU optimized builds]]\\
-Optimized Firefox [[user.js|user configuration file]]\\+Optimized Firefox [[firefox:user.js|user configuration file]]\\ 
 + 
 + 
 +=== FIX Crashing X-window with ATI drivers while moving toolbar icons == 
 + 
 +nglayout.enable_drag_images false 
 + 
 + 
 +=== Move disk cache onto RAMdisk === 
 + 
 +use tmpfs in linux 
 + 
 +add to /etc/fstab: 
 + 
 +  tmpfs /mnt/ramdisk tmpfs size=520M,noatime,mode=0777           0 
 + 
 +use rmdisk in Windows http://www.ltr-data.se/opencode.html/#ImDisk 
 + 
 +imdisk.exe -a -s 200M -m R: -S 4096 -p "/fs:exFAT /q /y" 
 + 
 +http://www.softperfect.com/products/ramdisk/ 
 + 
 +in about:config add 
 + 
 +  browser.cache.disk.parent_directory  R:\ 
 +  browser.cache.disk.capacity 190000 
 + 
 + 
 +=== Make Firefox remember all forms and passwords === 
 + 
 +find nsLoginManager.js\\ 
 +\\ 
 +linux 
 +  /usr/lib/xulrunner-1.9.1.5/components/nsLoginManager.js 
 +\\ 
 +windows 
 +  C:\Program Files\Mozilla Firefox\nsLoginManager.js) 
 +\\ 
 +Once you've found that file, open it in an editor, and find the section that has isAutoCompleteDisabled, and make it look like this (so it will always return FALSE): 
 + 
 +<code> 
 +    /* 
 +    * _isAutoCompleteDisabled 
 +    * 
 +    * Returns true if the page requests autocomplete be disabled for the 
 +    * specified form input. 
 +    */ 
 +    _isAutocompleteDisabled :  function (element) { 
 +    //        if (element && element.hasAttribute(”autocomplete”) && 
 +    //            element.getAttribute(”autocomplete”).toLowerCase() == “off”) 
 +    //            return true; 
 +  
 +    return false; 
 +    }, 
 +</code> 
 + 
 + 
 +In recent FF versions the nsLoginManager.js file is located in the "omni.jar" file (or "omni.ja" since FF 10). 
 +You'd have to open omni.jar with an unarchiver tool and look for your file in the "components" folder. 
 +After the modification select all files/folders within the omni folder, re-compress them and rename the resultant archive file to omni.jar 
 + 
 + 
 +=== Make old Firefox add-ons "compatible" === 
 +Find in install.rdf section similar to this: 
 +<code> 
 +  <em:targetApplication> 
 +  <Description> 
 + <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> 
 + <em:minVersion>1.0</em:minVersion> 
 + <em:maxVersion>3.6.*</em:maxVersion> 
 +  </Description> 
 +  </em:targetApplication> 
 +</code> 
 + 
 +and change maxVersion to something higher...
  
 === Firefox config optimizations === === Firefox config optimizations ===
Line 114: Line 188:
  
 check SQLoptimizer add-on!\\ check SQLoptimizer add-on!\\
 +
 +
 +<note important>install sqlite3 command line package first!</note>
 +
 +
  
 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): 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):
 +
  
 <code> <code>
-    for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f VACUUM;; done+#!/bin/bash 
 +killall firefox 
 +killall thunderbird 
 +du -hs ~/.mozilla/firefox 
 +du -hs ~/.thunderbird 
 +for f in  ~/.mozilla/firefox/*/*.sqlite; do sqlite3 ${f} "VACUUM;"; done 
 +for f in  ~/.thunderbird/*/*.sqlite; do sqlite3 ${f} "VACUUM;"; done 
 +du -hs ~/.mozilla/firefox 
 +du -hs ~/.thunderbird
 </code> </code>
  
Line 124: Line 212:
 Win32 .bat file: Win32 .bat file:
 <code> <code>
-for %%in (*.sqlite) do sqlite3 "%%v" VACUUM;+@echo off 
 +setlocal 
 +pushd 
 + 
 +REM IF EXIST "%APPDATA%\Thunderbird\Profiles" SET "HAS_TBIRD=1" 
 +REM IF EXIST "%APPDATA%\Mozilla\Firefox\Profiles" SET "HAS_FFOX=1" 
 +REM IF EXIST "%APPDATA%\Moonchild Productions\Pale Moon\profiles" SET "HAS_PALEMOON=1" 
 + 
 +set profiles=%APPDATA%\Thunderbird\Profiles 
 + 
 +cd /d %profiles% 
 +  
 + for /r %%in (*.sqlite) do 
 + echo %%a 
 + sqlite3 "%%a" VACUUM; 
 + sqlite3 "%%a" REINDEX; 
 +  ) 
 + 
 +set profiles=%APPDATA%\Mozilla\Firefox\Profiles 
 +cd /d %profiles% 
 +  
 + for /r %%a in (*.sqlite) do ( 
 + echo %%a 
 + sqlite3 "%%a" VACUUM; 
 + sqlite3 "%%a" REINDEX; 
 +  ) 
 + 
 +set profiles=%APPDATA%\Moonchild Productions\Pale Moon\profiles 
 + 
 +cd /d %profiles% 
 +  
 +for /r %%a in (*.sqlite) do ( 
 + echo %%a 
 + sqlite3 "%%a" VACUUM; 
 + sqlite3 "%%a" REINDEX; 
 +  ) 
 + 
 + 
 +popd 
 </code> </code>
  
 It’s harmless, no data will be lost: it compacts your **__[[sqlite]]__** databases. It’s harmless, no data will be lost: it compacts your **__[[sqlite]]__** databases.
- 
  
 ==== cpu optimized builds ==== ==== cpu optimized builds ====
firefox.1295547475.txt.gz · Last modified: 2011/01/20 19:17 by 90.157.176.243
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready