K-Meleon

KMeleonWiki > Resources > MacroLibrary > MacroTemplate

K-Meleon Macro Submission Template


Click EditThisPage. Then Copy & Paste the contents below this line into your page as a guide.


KMeleonWiki > Resources > MacroLibrary > ENTER YOUR MACRO PAGE NAME HERE

Submitted by: ENTER YOUR NAME HERE



Notes:

ENTER YOUR NOTES HERE. IF NONE, THEN DELETE THIS SECTION.




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

YOUR_MODULE_NAME.kmm

# delicious.kmm
#
# Macros for posting bookmarks to Delicious, a social bookmarks manager.
# You need to be logged in at Delicious before invoking this macro.

_delicious{
$OpenURL="http://delicious.com/save?url=".urlencode($__url);
$OpenURL=$OpenURL."&title=".urlencode($__title);
$OpenURL=$OpenURL."&v=5&noui=1&jump=bookmarks";
&OpenURL_InNew;
}

delicious_page{
menugrayed=(hostname($URL)=="");
$__url=$URL;
$__title=$TITLE==""?$URL:$TITLE;
&_delicious;
}

delicious_link{
$__url=$LinkURL;
$__title=$LinkURL;
&_delicious;
}

_delicious_buildmenu{
setmenu(Document,macro,"Post to Delicious",delicious_page,-1);
setmenu(LinkPopup,macro,"Post link to Delicious",delicious_link,-1);
setmenu(FrameLinkPopup,macro,"Post link to Delicious",delicious_link,-1);
}

_delicious_buildaccel{
setaccel("VK_F12", "macros(delicious_page)");
}

$OnInit=$OnInit."_delicious_buildmenu;_delicious_buildaccel;";
$macroModules=$macroModules."delicious;";

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

KMeleonWiki > Resources > MacroLibrary > C:\Documents and Settings\Antonio\Dados de aplicativos\K-Meleon\default76w0hrr9.slt\macros

Submitted by: AsB1146

K-Meleon

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