randomfox (randomfox) wrote,
randomfox
randomfox

K-Meleon macro to post to del.icio.us (updated 2005/09/27)

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 special macros to post to del.icio.us because the bookmarklets don't work. Here, I've made the following bindings:
  • F12: post to del.icio.us
  • Shift-F12: set del.icio.us user name

In macros.cfg:
# --- del.icio.us macros ---

$de="kmeleon.general.deliciousUser";

SetDelicious{
$word=prompt("Set del.icio.us username to: ", "del.icio.us setup");
$word=="" ? "" : setpref(STRING, $de, $word);
}

RunDelicious{
$xul="http://del.icio.us/".$word."?v=2&jump=close&url=".$URL."&title=".$TITLE;
&XUL;
}

Delicious{
$word=getpref(STRING, $de);
$word=="" ? &SetDelicious : "";
$word=="" ? "" : &RunDelicious;
}

# --- End del.icio.us macros ---

In accel.cfg:
# --- del.icio.us hotkeys ---

%ifplugin macros
VK_F12 = macros(Delicious)
SHIFT VK_F12 = macros(SetDelicious)
%endif

# --- End del.icio.us hotkeys ---
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments