General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
cache view
Posted by: disrupted
Date: August 06, 2008 02:22AM

macro extension to add cache viewer link in view command and contextmenu>page properties
, links to nirsoft's mozillafirefox( http://www.nirsoft.net/utils/mozilla_cache_viewer.html )

script:

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Cache Viewer---------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------

CV_OpenPage{
$_CV_Open=$URL; &_CV_Open;
}

# ----- PRIVATE

_CV_Open{
# fallback command line (may fail on NT):
$_CV=sub("%s",_("Program Files"),"\"H:\\APPLIC~1\\RASCOM~1\\nirextra\\FFCACH~1\\MOZILL~1.EXE\" -folder C:\\DOCUME~1\\leeds\\LOCALS~1\\APPLIC~1\\K-Meleon\\default\\Cache");
# PATCH (invalid IE7 registry data)
index($__data,".")>index($__data,"%1")?$__data="\"H:\\APPLIC~1\\RASCOM~1\\nirextra\\FFCACH~1\\MOZILL~1.EXE\" -folder C:\\DOCUME~1\\leeds\\LOCALS~1\\APPLIC~1\\K-Meleon\\default\\Cache":0;
# PATCH
$__data==""?0:$_CV=$__data; exec(sub("%1",$_CV_Open,$_CV));
}

_CV_BuildMenu{
# view menu
setmenu("Page &Properties",macro,"Cache Viewer",CV_OpenPage,"Cache &Information");
# context menus
setmenu("Page Pro&perties",macro,"Cache Viewer",CV_OpenPage,"Cache &Information");
}
_CV_SetAccels{
setaccel("CTRL ALT C","macros(CV_OpenPage)");
}
$OnInit=$OnInit."_CV_SetAccels;_CV_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."CV;";
_____________________________________________________________

IMPORTANT!
change path(H:\\APPLIC~1\\RASCOM~1\\nirextra\\FFCACH~1\\MOZILL~1.EXE\) to where you have the mozillacacheviewer on your hd.
to where your cache folder is.


Options: ReplyQuote
Re: cache view
Posted by: desga2
Date: August 06, 2008 10:41AM

Thanks disrupted, for shared your macro code.
Can you add it in the Macro Library?

Macro code in forums is hard to find in the future.

Thanks.

K-Meleon in Spanish

Options: ReplyQuote
Re: cache view
Posted by: disrupted
Date: August 06, 2008 01:55PM

i'd like to but i tried editing the macros wiki page and i didn't know how, i'm afraid i might mess it up, can you please add it for me, thanks smiling smiley

here's another macro 'send page to= getright download manager':
(adds command download plus links url to getright.exe)


Options: ReplyQuote
Re: cache view
Posted by: JamesD
Date: August 06, 2008 02:51PM

@ disrupted

I am having a problem seeing anything in the viewer. Does the viewer program require that I drop back to the 8.3 naming standard for the location of my cache? I am running under XP SP3.

C:\\Program Files\\k-meleon15b2\\Profiles\\tufvx7du.default\\Cache is the location of my cache. When the viewer comes up, I can browse to that location and see the cache just fine, but I have nothing when viewer first shows.

Options: ReplyQuote
Re: cache view
Posted by: disrupted(unlogged)
Date: August 06, 2008 04:36PM

yes, mozillacacheviewer won't recognise the folder path if a folder name contains spaces, that's why you have to use 8.3 naming, you will notice that when the viewer opens; the titlebar will show c:\program, unable to find the path.

so you just add this line instead:

-folder C:\\PROGRA~1\\K-MELE~1\\Profiles\\TUFVX7~1.DEF\\Cache

Options: ReplyQuote
Re: cache view
Posted by: desga2
Date: August 06, 2008 04:59PM

Are you tried to pass path between " " (double quotes)?
Remember that double quotes must be write it in macro code as: \"

\"C:\\Program Files\\k-meleon15b2\\Profiles\\tufvx7du.default\\Cache\"

Quote
In MozilllaCacheView's readme.txt file you can read:
-folder <Cache Folder>
Start MozillaCacheView with the specified cache folder.

Examples:
MozillaCacheView.exe -folder "C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Mozilla\Firefox\Profiles\acf2c3u2.default\Cache"
MozillaCacheView.exe -folder "C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Mozilla\Firefox\Profiles\acf2c3u2.default\Cache" /shtml
c:\temp\mz.html
MozillaCacheView.exe /stext c:\temp\mz.txt

As you can see -folder support spaces in paths when this paths go between double quotes.

P.S.: This is a general rule for all programs in Windows.

K-Meleon in Spanish



Edited 4 time(s). Last edit at 08/06/2008 05:09PM by desga2.

Options: ReplyQuote
Re: cache view
Posted by: JamesD
Date: August 06, 2008 06:16PM

@ disrupted

Thanks. 8.3 names did the trick. Runs fine now. When put in MacroLibrary there should be note about this or this question will come up forever.

@ desga2

Interesting to know that spaces accepted when double quotes used. Wonder if I will remember that the next time the subject comes up. Maybe I need to begin my own personal FAQ system.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.