K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmDelicious

Submitted by: rstlne



Notes:

This is a macro for posting bookmarks to Delicious, a social bookmarks manager. You need to be logged in at Delicious before invoking these macros.

This macro is similar to the bookmarklet provided by Delicious. The difference is the macro works even if you've set your bookmark options so that bookmarks open in a new layer. That setting breaks the bookmarklet.

Usage:

Hit F12 to post to Delicious. The macro will take the url and title from the current page and open up the form for posting to Delicious in a new layer.

This macro is also accessible from 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 files:

delicious.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 --


Comments & Questions

K-Meleon

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