//
user_pref("browser.cache.disk.enable", true); // ..
user_pref("browser.cache.disk.capacity", 65535); // .. 64 . , :)
user_pref("browser.cache.memory.enable", false); //
user_pref("browser.cache.offline.enable", false); // , :)
user_pref("browser.turbo.enabled", false); // - . .
user_pref("config.trim_on_minimize", false); // . . 7
//
user_pref("app.update.auto", true); //
user_pref("app.update.enabled", false); //
user_pref("app.update.mode", 1); // ,
user_pref("app.update.silent", true); //
user_pref("browser.search.update", true); //
user_pref("extensions.update.enabled", true); //
user_pref("extensions.update.notifyUser", false); //
#( Loading_Firefox_into_RamDisk
AsLoggedUser
SingleInstance
WatchLogon: "*"
Action:
SWHide
StartIn: "C:\Program Files\nnBackup\"
START-APPW: nnbackup.exe sync -i D:\BackUp\Firefox -o R:\Firefox -s -c -x firefox.exe -dx Cache
FILE-WRITE: "%AppData%\Mozilla\Firefox\profiles.ini" "[General]%crlf%StartWithLastProfile=1%crlf%%crlf%[Profile0]%crlf%Name=Default User%crlf%IsRelative=0%crlf%Path=R:\Firefox\Profile%crlf%Default=1"
S" R:\Firefox\Profile\compatibility.ini" INI-FILENAME
S" Compatibility" INI-SECTION
S" LastPlatformDir" S" R:\Firefox\App" INI-SET-VALUE
S" LastAppDir" S" R:\Firefox\App" INI-SET-VALUE
START-APP: nnbackup.exe sync -i D:\BackUp\Firefox\App -o R:\Firefox\App -c -m firefox.exe
START-APP: nnbackup.exe sync -i D:\BackUp\Firefox\Profile\Cache -o R:\Firefox\Profile\Cache -c
)#
#( BackUp_Firefox
AsLoggedUser
SingleInstance
WatchProcStop: "firefox.exe"
Rule: PROC-EXIST: "firefox.exe" NOT
Action:
SWHide IdlePriority
AsService
StartIn: "C:\Program Files\nnBackup\"
FILE-WRITE: "%AppData%\Mozilla\Firefox\profiles.ini" "[General]%crlf%StartWithLastProfile=1%crlf%%crlf%[Profile0]%crlf%Name=Default User%crlf%IsRelative=0%crlf%Path=R:\Firefox\Profile%crlf%Default=1"
S" R:\Firefox\Profile\compatibility.ini" INI-FILENAME
S" Compatibility" INI-SECTION
S" LastPlatformDir" S" R:\Firefox\App" INI-SET-VALUE
S" LastAppDir" S" R:\Firefox\App" INI-SET-VALUE
START-APPW: nnbackup.exe sync -i R:\Firefox -o D:\BackUp\Firefox -s -ad -c -dx Cache
START-APP: nnbackup.exe sync -i R:\Firefox\Profile\Cache -o D:\BackUp\Firefox\Profile\Cache -ad -da -c
)#
#( BackUp_Firefox_One_Hour
AsLoggedUser
SingleInstance
Time: 0 * * * * *
Action: BackUp_Firefox RUN
)#
SET foxlink=http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-1.9.1-l10n/
SET dspeed=256k
#( Update_Firefox
AsLoggedUser
SingleInstance
Time: 0 20 * * 3,7 *
Action:
SWHide IdlePriority
AsService
StartIn: "C:\Program Files\Wget\"
DIR-DELETE: "R:\Updates\Firefox"
START-APPW: wget.exe %foxlink% -PR:\Updates\Firefox\ -c --limit-rate=%dspeed% --wait=2m --tries=60
FILE-EXIST: "R:\Updates\Firefox\index.html" NOT
IF
LOG: "D:\BackUp\update.log" ">> . Firefox [%FT-CUR FT>DD.MM.YYYY/hh:mm:ss%]"
EXIT
THEN
RE-MATCH: "%FILE: R:\Updates\Firefox\index.html%" "/firefox-\d\.\d(\.\d(\d)*)*(\l\d)*pre\.(en-US)|(ru)\.win32\.zip/i"
IF
START-APPW: wget.exe %foxlink%%$0% -PR:\Updates\Firefox\ -c --limit-rate=%dspeed% --wait=2m --tries=60
FILE-EXIST: "R:\Updates\Firefox\%$0%" NOT
IF
DIR-DELETE: "R:\Updates\Firefox"
LOG: "D:\BackUp\update.log" ">> %$0% [%FT-CUR FT>DD.MM.YYYY/hh:mm:ss%]"
EXIT
THEN
START-APPW: WinRAR.exe t R:\Updates\Firefox\%$0% -r -y
ExitCodeProc 0 <>
IF
LOG: "D:\BackUp\update.log" ">> %$0% [%FT-CUR FT>DD.MM.YYYY/hh:mm:ss%]"
EXIT
THEN
START-APPW: WinRAR.exe x R:\Updates\Firefox\%$0% R:\Updates\Firefox\ -y
ExitCodeProc 0 <>
IF
LOG: "D:\BackUp\update.log" ">> %$0% [%FT-CUR FT>DD.MM.YYYY/hh:mm:ss%]"
EXIT
THEN
PAUSE: 10000
START-APPW: nnbackup.exe sync -i R:\Updates\Firefox\firefox -o D:\BackUp\Firefox\App -s -ad -c
BEGIN PAUSE: 250 PROC-EXIST: "firefox.exe" NOT UNTIL
FILE-DELETE: "R:\Firefox\App\firefox.exe"
START-APPW: nnbackup.exe sync -i R:\Updates\Firefox\firefox -o R:\Firefox\App -s -ad -c -x firefox.exe
START-APPW: nnbackup.exe -i R:\Updates\Firefox\firefox\firefox.exe -o R:\Firefox\App -c
LOG: "D:\BackUp\update.log" " %$0% [%FT-CUR FT>DD.MM.YYYY/hh:mm:ss%]"
DIR-DELETE: "R:\Updates\Firefox"
ELSE
DIR-DELETE: "R:\Updates\Firefox"
LOG: "D:\BackUp\update.log" ">> . Firefox [%FT-CUR FT>DD.MM.YYYY/hh:mm:ss%]"
THEN
)#
Source: https://habr.com/ru/post/72463/
All Articles