randomfox: (Default)
[personal profile] randomfox
del.icio.us is a social bookmarks manager. By posting to the service, you can both maintain a collection of bookmarks and shared them with the public at the same time.

K-Meleon requires a special macro to post to del.icio.us because the bookmarklets don't work. This macro may be bound to any keystroke, toolbar button, or menu item. Here, I bind it to F12.

If you use the macro, replace the userid in the del.icio.us URL with your own userid.

The String.fromCharCode(39) is a hack to handle website titles with quote characters in them. While both the K-Meleon macro language and Javascript can handle the quote character just fine, something seems to break nevertheless.

In macros.cfg:
Delicious{
$cmd="javascript:p='".$URL;
$cmd=$cmd."';q='".gsub("'","'+String.fromCharCode(39)+'",$TITLE);
$cmd=$cmd."';location.href='http://del.icio.us/pcheah?v=2&jump=close";
$cmd=$cmd."&url='+encodeURIComponent(p)+'&title='+encodeURIComponent(q)";
opennew($cmd);
}

In accel.cfg:
%ifplugin macros
VK_F12 = macros(Delicious)
%endif

Profile

randomfox: (Default)
randomfox

November 2012

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728 2930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 10th, 2026 09:28 pm
Powered by Dreamwidth Studios