General :  K-Meleon Forum
General discussion about K-Meleon. 
page load speed in status bar?
Posted by: Meeee
Date: March 31, 2012 07:31AM

I like how opera shows you the download/upload speed and would love to have this function in k-melon, is it possible?

I saw this addon which might look like it does the job, but i have no idea how to manually install, even if i copy all extracted files I still need to write some code or something and I can't even write html, let alone scripts tongue sticking out smiley

https://addons.mozilla.org/en-US/firefox/addon/lori-life-of-request-info/

anyway.. anybody can give some advice? is there any way i can do this easily?

thanks

Options: ReplyQuote
Re: page load speed in status bar?
Posted by: JamesD
Date: March 31, 2012 08:21AM

I have to leave on a trip and don't have time to check the add-on you found. I do have an old program which may be of some use. Loadtime test will show in the tools menu and you must put the url of the site for which you wish to check into the urlbar. The two programs go in your macro folder or your user macro folder.

LoadTime.kmm

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- LoadTime.kmm
# ---------- K-Meleon Macro Language to poll the time before and after pageload ---------------
#
# Dependencies : main.kmm
# Resources    : LoadTime.js
# Preferences  : -
# Version      : 0.7 2008-11-05
# --------------------------------------------------------------------------------

LoadTime_RunCode {
setpref( BOOL, "k-meleon_loadtime_active", TRUE);
$_LoadTime_URL = $URLBAR ;
exec("wscript.exe \"".$_LoadTime_Path."\" 1");
open( $_LoadTime_URL );
}

_LoadTime_Loaded_Run {
getpref( BOOL, "k-meleon_loadtime_active" )== true ? &_LoadTime_Loaded_RunTrue : 0;
}

_LoadTime_Loaded_RunTrue {
exec("wscript.exe \"".$_LoadTime_Path."\" 2") ;
togglepref( BOOL, "k-meleon_loadtime_active") ;
}
_LoadTime_BuildMenu{
setmenu("&Tools",macro,"LoadTime Test",LoadTime_RunCode,Misc);
}

_LoadTime_SetAccels{
setaccel("ALT l", "macros(LoadTime_RunCode)");
	}

_LoadTime_GetPath{
$__Data=readfile(getfolder(MacroFolder)."\\LoadTime.kmm");
$_LoadTime_Path=getfolder($__Data==""?UserMacroFolder:MacroFolder)."\\LoadTime.js";
}

$OnLoad=$OnLoad."_LoadTime_Loaded_Run;";
$OnStartup=$OnStartup."_LoadTime_GetPath;";
$OnInit=$OnInit."_LoadTime_BuildMenu;";
$OnInit=$OnInit."_LoadTime_SetAccels;";
$macroModules=$macroModules."LoadTime;";

LoadTime.js

/* LoadTimejs by JamesD, version 0.5 2008-10-05

This script is a helper application for the K-Meleon Macro Module LoadTime.kmm that
produces an elasped time for a page load.

Windows Script Host 2.0 (or better) required!

WSH is part of Microsoft Internet Explorer 5.0 and newer. Latest version of WSH is
available at http://msdn.microsoft.com/scripting/
*/
var d, t ;
if(WScript.Arguments.count()==1)
{
var WshShell = new ActiveXObject("WScript.Shell")
if (WScript.Arguments(0) == 1)
{
d = new Date();
t = d.getTime();
WshShell.RegWrite ("HKCU\\Software\\KMELEON\\LoadTime\\start", t, "REG_SZ");
}
if (WScript.Arguments(0) == 2)
{
d = new Date();
t = d.getTime();
WshShell.RegWrite ("HKCU\\Software\\KMELEON\\LoadTime\\finish", t, "REG_SZ");
var $_LoadTime_Start = WshShell.RegRead ("HKCU\\Software\\KMELEON\\LoadTime\\start") ;
var $_LoadTime_Finish = WshShell.RegRead ("HKCU\\Software\\KMELEON\\LoadTime\\finish") ;
var $_LoadTime_Elapsed = $_LoadTime_Finish - $_LoadTime_Start ;
var $_LoadTime_Seconds = $_LoadTime_Elapsed / 1000 ;
WScript.Echo( $_LoadTime_Seconds + " Seconds elapsed time") ;
WshShell.RegDelete ("HKCU\\Software\\KMELEON\\LoadTime\\start") ;
WshShell.RegDelete ("HKCU\\Software\\KMELEON\\LoadTime\\finish") ;
}
}
else
{
objArgs = WScript.Arguments ;
WScript.Echo(WScript.Arguments.Count());
for (i=0; i<objArgs.length; i++)
{
WScript.Echo(objArgs(i))
}
}


Options: ReplyQuote
Re: page load speed in status bar?
Posted by: Meeee
Date: March 31, 2012 07:58PM

thanks, I have seen tool like that for testing speeds and that fine, but i want somehting a bit more basic, and on the toolbar. I do find it strange how all the mainstream browsers have these basic functions which when trying to get into firefox or ffclone (like k-melon) is like trying to get blood out of a stone, every little thing.. so complicated! sad smiley

I guess this is why these other browsers are so popular...

Options: ReplyQuote
Re: page load speed in status bar?
Posted by: guenter
Date: March 31, 2012 08:15PM

Quote
Meeee
I do find it strange how all the mainstream browsers have these basic functions which when trying to get into firefox or ffclone (like k-melon) is like trying to get blood out of a stone, every little thing.. so complicated! sad smiley

I guess this is why these other browsers are so popular...

K-Meleon is no Firefox clone. K-Meleon project is older than Firefox.

I do not know what You mean with all mainstream browsers.
And where they have the feature that You want. Describe it.

Options: ReplyQuote
Re: page load speed in status bar?
Posted by: Meeee
Date: April 01, 2012 06:39AM

well, like this:
http://i42.tinypic.com/54tbfm.jpg

for example, in opera it's tools-->appearance-->buttons-->status--> "speed" .

you can just drag it down into the status bar.
(older opera versions has this enabled by default)

Options: ReplyQuote


K-Meleon forum is powered by Phorum.