Hi,
I make a Kmm personnal file "Parametres Personnels.kmm" (in french). Inside you have my paramters for speed, load a wav file, use freenet
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- Page Load Speed-Up ------------------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# $OpenURL="
http://127.0.0.1:8888/";
# &OpenURL_InNew;
# "C:\Program Files\Freenet\bin\start.cmd"
# ------------------------------------------------------------------------------------------------------------------
#
# CHOIX FREENET
#
Freenet_Toggle{
menuchecked=(getpref(INT,"network.http.max-connections")==200);
getpref(INT,"network.http.max-connections")==200?&_Freenet_Disable:&_Freenet_Enable;
}
# ----- Private
_Freenet_Enable{
&_SpeedUp_Disable;
$_Fic_cmd="start.cmd";
exec("\"".getfolder(MacroFolder)."\\Freenet\" ".$_Fic_cmd."");
statusbar(sub("%s",$on,_("Freenet %s")));
# INCREASE MULTI-THREADED DOWNLOAD PERFORMANCE
setpref(INT, "network.http.max-connections",200);
setpref(INT, "network.http.max-connections-per-server",100);
setpref(INT, "network.http.max-persistent-connections-per-proxy",50);
setpref(INT, "network.http.max-persistent-connections-per-server",10);
$OpenURL="
http://127.0.0.1:8888/";
&OpenURL_InNew;
}
_Freenet_Disable{
$_Fic_cmd="stop.cmd";
exec("\"".getfolder(MacroFolder)."\\Freenet\" ".$_Fic_cmd."");
statusbar(sub("%s",$off,_("Freenet %s")));
# RESTORE DEFAULTS
# INCREASE MULTI-THREADED DOWNLOAD PERFORMANCE
setpref(INT, "network.http.max-connections",64);
setpref(INT, "network.http.max-connections-per-server",24);
setpref(INT, "network.http.max-persistent-connections-per-proxy",16);
setpref(INT, "network.http.max-persistent-connections-per-server",16);
}
#
# CHOIX SPEEDUP
#
SpeedUp_Toggle{
menuchecked=(getpref(BOOL,"network.http.pipelining")==true);
getpref(BOOL,"network.http.pipelining")==true?&_SpeedUp_Disable:&_SpeedUp_Enable;
}
# ----- Private
_SpeedUp_Enable{
&_Freenet_Disable;
statusbar(sub("%s",$on,_("Page load speed-up %s")));
# ENABLE IMPROVED PIPELINING
setpref(BOOL, "network.http.pipelining",true);
setpref(INT, "network.http.pipelining.maxrequests",9);
setpref(BOOL, "network.http.proxy.pipelining",true);
setpref(BOOL, "network.http.pipelining.firstrequest",true);
# INCREASE MULTI-THREADED DOWNLOAD PERFORMANCE
setpref(INT, "network.http.max-connections",64);
setpref(INT, "network.http.max-connections-per-server",24);
setpref(INT, "network.http.max-persistent-connections-per-proxy",16);
setpref(INT, "network.http.max-persistent-connections-per-server",16);
setpref(INT, "network.http.request.max-start-delay",0);
setpref(BOOL, "network.dns.disableIPv6",true);
setpref(INT, "network.http.keep-alive.timeout",30);
setpref(INT, "network.ftp.idleConnectionTimeout",60);
#
setpref(BOOL, "network.prefetch-next",false);
setpref(BOOL, "signed.applets.codebase_principal_support",false);
setpref(BOOL, "plugin.expose_full_path",true);
setpref(STRING, "image.animation_mode",once);
#
setpref(INT, "browser.link.open_newwindow",1);
setpref(INT, "browser.cache.disk.capacity",65536);
setpref(INT, "browser.cache.memory.capacity",65536);
setpref(INT, "browser.sessionhistory.max_total_viewers",0);
setpref(INT, "browser.sessionhistory.max_viewers",0);
setpref(INT, "browser.sessionhistory.max_entries",0);
setpref(BOOL, "browser.cache.disk_cache_ssl",true);
setpref(BOOL, "browser.xul.error_pages.enabled",true);
setpref(BOOL, "browser.turbo.enabled",true);
setpref(BOOL, "browser.urlbar.clickSelectsAll",true);
setpref(BOOL, "browser.search.openintab",true);
# TURN ON TIMER BASED REFLOW MANAGEMENT
setpref(BOOL, "content.notify.ontimer",true);
# SETS THE ALLOWED TIME BETWEEN REFLOWS IN MICROSECONDS
setpref(INT, "content.notify.interval",849999);
# SET THE NUMBER OF REFLOWS TO DO BEFORE WAITING FOR THE REST OF THE PAGE TO ARRIVE
setpref(INT, "content.notify.backoffcount",5);
setpref(INT, "content.maxtextrun",8191);
setpref(INT, "content.switch.treshold",849999);
setpref(INT, "content.max.tokenizing.time",1699998);
setpref(BOOL, "content.interrupt.parsing",true);
setpref(INT, "ui.submenuDelay",0);
setpref(INT, "nglayout.initialpaint.delay",0);
setpref(INT, "nglayout.initial.delay",0);
setpref(BOOL, "config.trim_on_minimize",true);
setpref(BOOL, "ui.scrollToClick",true);
}
_SpeedUp_Disable{
&_Freenet_Disable;
statusbar(sub("%s",$off,_("Page load speed-up %s")));
# RESTORE DEFAULTS
# ENABLE IMPROVED PIPELINING
delpref("network.http.pipelining");
delpref("network.http.pipelining.maxrequests");
delpref("network.http.proxy.pipelining");
delpref("network.http.pipelining.firstrequest");
# INCREASE MULTI-THREADED DOWNLOAD PERFORMANCE
delpref("network.http.max-connections");
delpref("network.http.max-connections-per-server");
delpref("network.http.max-persistent-connections-per-proxy");
delpref("network.http.max-persistent-connections-per-server");
delpref("network.http.request.max-start-delay");
delpref("network.dns.disableIPv6");
delpref("network.http.keep-alive.timeout");
delpref("network.ftp.idleConnectionTimeout");
#
delpref("network.prefetch-next");
delpref("signed.applets.codebase_principal_support");
delpref("plugin.expose_full_path");
delpref("image.animation_mode");
#
delpref("browser.link.open_newwindow");
delpref("browser.cache.disk.capacity");
delpref("browser.cache.memory.capacity");
delpref("browser.sessionhistory.max_total_viewers");
delpref("browser.sessionhistory.max_viewers");
delpref("browser.sessionhistory.max_entries");
delpref("browser.cache.disk_cache_ssl");
delpref("browser.xul.error_pages.enabled");
delpref("browser.turbo.enabled");
delpref("browser.urlbar.clickSelectsAll");
delpref("browser.search.openintab");
# TURN ON TIMER BASED REFLOW MANAGEMENT
delpref("content.notify.ontimer");
# SETS THE ALLOWED TIME BETWEEN REFLOWS IN MICROSECONDS
delpref("content.notify.interval");
# SET THE NUMBER OF REFLOWS TO DO BEFORE WAITING FOR THE REST OF THE PAGE TO ARRIVE
delpref("content.notify.backoffcount");
delpref("content.maxtextrun");
delpref("content.switch.treshold");
delpref("content.max.tokenizing.time");
delpref("content.interrupt.parsing");
delpref("ui.submenuDelay");
delpref("nglayout.initialpaint.delay");
delpref("nglayout.initial.delay");
delpref("config.trim_on_minimize");
delpref("ui.scrollToClick");
}
#
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- PgLdSound.kmm
# ---------- K-Meleon Macro Language Play Sound at Page Load ---------------
#
# Dependencies : main.kmm winmm.dll
# Resources : - sound files *.wav and Sounder.exe
# Preferences : -
# Version : 0.5 2007-10-15
# --------------------------------------------------------------------------------
#
_PgLdSound_Sound_On{
# checkmark value for the on menu;
menuchecked=getpref( BOOL , "k-meleon_pgldsound_use" )==true;
# set the userpref k-meleon_pgldsound_use to true;
setpref( BOOL , "k-meleon_pgldsound_use", true );
}
#
_PgLdSound_Sound_Off{
# checkmark value for the off menu;
menuchecked=getpref( BOOL , "k-meleon_pgldsound_use" )==false;
# set the userpref k-meleon pgldsound_use to false;
setpref( BOOL , "k-meleon_pgldsound_use", false );
}
#
_PgLdSound_Configure{
#Prompts the user for a file, displaying only the files matching the pattern.
$_PgLdSound_Choice_Path = promptforfile( $_PgLdSound_Path, "Sound Files", "*.wav" );
$_PLS_Length = length($_PgLdSound_Path );
setpref( STRING, "k-meleon_pgldsound_choice", substr($_PgLdSound_Choice_Path, $_PLS_Length + 1 ));
}
#
# ---------- bookmarkbackup Extension (Bookmark Backup) -------------------------------------------------------------------
#
# Dependencies : main.kmm (OpenURL)
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------
bookmarkbackup{
$OpenURL="chrome://bookmarkbackup/content/bookmarkbackupSettings.xul"; &OpenURL_InNewWindow;
}
# ------------------------------------------------------------------------------------------------------------------
_MenuParametres_BuildMenu{
# Connection menu
#
setmenu(PrivacySecurity,popup,"&Parametrages Personnel");
setmenu("&Parametrages Personnel",popup,"&Menu Freenet");
setmenu("&Menu Freenet",macro,"Lancement/Arret Freenet",Freenet_Toggle);
setmenu("&Parametrages Personnel",separator,-1);
setmenu("&Parametrages Personnel",macro,"Acc&eleration du chargement des pages",SpeedUp_Toggle);
setmenu("&Parametrages Personnel",separator,-1);
setmenu("&Parametrages Personnel",macro,"Sauvegarde Profil",bookmarkbackup,-1);
setmenu("&Parametrages Personnel",separator,-1);
setmenu("&Parametrages Personnel",popup,"Chargement de Page en Musique",Misc);
setmenu("Chargement de Page en Musique",macro,"ON" . " (" .getpref( STRING , "k-meleon_pgldsound_choice" ) ." )",_PgLdSound_Sound_On,0);
setmenu("Chargement de Page en Musique",macro,"OFF",_PgLdSound_Sound_Off,1);
setmenu("Chargement de Page en Musique",separator,2);
setmenu("Chargement de Page en Musique",macro,"Configure ...",_PgLdSound_Configure,3);
}
#
_PgLdSound_Get_Path{
### sounder.exe is supposed to be located in a subfolder, PgLdSound, of the user macro folder.
$_PgLdSound_Path=getfolder(MacroFolder)."\\PgLdSound";
}
#
_PgLdSound_Sound_Play{
$_PgLdSound_Use = getpref( BOOL , "k-meleon_pgldsound_use" );
$_PgLdSound_Choice = getpref( STRING , "k-meleon_pgldsound_choice" );
$_PgLdSound_Use ==true ? exec("\"".getfolder(MacroFolder)."\\PgLdSound\\Sounder.exe\" ".$_PgLdSound_Choice." >Nul") : 0;
}
#
$OnStartup=$OnStartup."_PgLdSound_Get_Path;";
$OnLoad=$OnLoad."_PgLdSound_Sound_Play;";
$OnInit=$OnInit."_MenuParametres_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."SpeedUp;";