Warning: Illegal string offset 'flags' in /home/project-web/kmeleon/htdocs/erfurt-1.02b/ewiki.php on line 2556

Warning: strpos() expects parameter 1 to be string, array given in /home/project-web/kmeleon/htdocs/erfurt-1.02b/ewiki.php on line 2486

Warning: Illegal string offset 'flags' in /home/project-web/kmeleon/htdocs/erfurt-1.02b/ewiki.php on line 2556

Warning: strpos() expects parameter 1 to be string, array given in /home/project-web/kmeleon/htdocs/erfurt-1.02b/ewiki.php on line 2486

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/kmeleon/htdocs/erfurt-1.02b/ewiki.php on line 1756
K-Meleon - KmmGoogleCache

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.