K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmGoogleCache

Submitted by: rstlne



Notes:

This is a set of macros for viewing the Google cache entry of a link or the current page. These macros will be added to the document and link popup menus.




Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder (Edit > Configuration > Macros) and create the following text file(s):

googlecache.kmm

# googlecache.kmm
#
# Macros for viewing the Google cache entry of a link or the current page.
#
# Dependencies: main.kmm

_googlecache{
$OpenURL="http://google.com/search?q=cache:".urlencode($_googlecache);
&OpenURL_InNew;
}

googlecache_page{
$_googlecache=$URL; &_googlecache;
}

googlecache_link{
$_googlecache=$LinkURL; &_googlecache;
}

_googlecache_buildmenu{
setmenu(Document,macro,"View Google Cache of this page",googlecache_page,-1);
setmenu(LinkPopup,macro,"View Google Cache of this link",googlecache_link,-1);
setmenu(FrameLinkPopup,macro,"View Google Cache of this link",googlecache_link,-1);
}

$OnInit=$OnInit."_googlecache_buildmenu;";
$macroModules=$macroModules."googlecache;";

# vim:set tw=0:
# -- The End --


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.