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.