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 # # Macros for viewing the Google cache entry of a link or the current page. # # Dependencies: main.kmm googlecache_page{ $OpenURL="http://google.com/search?q=cache:".urlencode($URL); &OpenURL_InNew; } googlecache_link{ $OpenURL="http://google.com/search?q=cache:".urlencode($LinkURL); &OpenURL_InNew; } _googlecache_buildmenu{ setmenu(DocumentPopup,macro,"View Google Cache of this page",googlecache_page,-1); setmenu(FrameDocumentPopup,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 --