K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmCoralize

Submitted by: rstlne



Notes:

Coral is a free peer-to-peer content distribution network, comprised of a world-wide network of web proxies and nameservers. The following macros help you fetch a page or a link through CoralCDN. Rather than editing the URL as described in the CoralCDN FAQ, these macros use the coralize.net service to rewrite the URL.




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

coralize.kmm

# coralize.kmm
#
# Macros for viewing pages or links through CoralCDN.

_coralize{
$OpenURL="http://coralize.net/".$_coralize;
&OpenURL_InNew;
}

coralize_page{
menugrayed=(hostname($URL)=="");
$_coralize=$URL; &_coralize;
}

coralize_link{
menugrayed=(hostname($LinkURL)=="");
$_coralize=$LinkURL; &_coralize;
}

_coralize_buildmenu{
setmenu(Document,macro,"Fetch page via CoralCDN",coralize_page,-1);
setmenu(LinkPopup,macro,"Fetch link via CoralCDN",coralize_link,-1);
setmenu(FrameLinkPopup,macro,"Fetch link via CoralCDN",coralize_link,-1);
}

$OnInit=$OnInit."_coralize_buildmenu;";
$macroModules=$macroModules."coralize;";

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


Comments & Questions

K-Meleon

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