Last night I hacked together a bit of JavaScript to add a right-click context menu posting option to Joshua Schachter’s Social Bookmarks Manager.

It works in a similar fashion to the bookmarklet, but is accessible via the right-click context menu in IE. It also adds the feature of pulling in any text selected on the page into the “extended” description field and remembers your del.icio.us/user path after the first invocation by storing it in a cookie.

Installation should be easy…

I’ve created a windows registry script to add the necessary registry key as well as a removal script to delete the key if you would like to remove the context menu option.

  • Simply click on the following link: post-to-del-icio-us.reg
  • When prompted, click save to download it to your local system (desktop is fine)
  • Close your browser (important step)
  • Double-click on the post-to-del-icio-us.reg registry script and then click ‘Ok’ on the two message boxes
  • Start-up your browser, select some text on a page, right-click the text and select “Post to del.icio.us”
  • When first run, you will be prompted for your del.icio.us/user path, which is in the format: http://del.icio.us/[your-user-name] (e.g. mine is http://del.icio.us/hatch)

Some other notes:

As for as I know, this only works in IE (or derivatives like MyIE2) and it’s definitely specific to Windows.

There is a way to delete the cookie that contains your del.icio.us/user path. You can do so by using this link

As I mentioned above I also have a removal registry script, which you can use to delete the context menu from IE.

If you would like to run the script locally from your system, I have provided a zip archive containing all the necessary files.

To customize the script for your local system, drop the post-to-del-icio-us.html into your Windows directory and edit the post-to-del-icio-us.reg file to point to the local path instead of my server.

That’s it.

Enjoy.

Update: 2004/09/17
Dan Grigsby has created a Windows Installer for this script. Do check it out!

Thanks Dan!

Related Posts

  • del.icio.us Context Menu Installer -- Sweet! Dan Grigsby just informed me that he created a Windows Installer for my del.icio.us Context Menu script. Aside from how clean and professional Dan’s installer makes the context menus, you can also use Add/Remove Programs control panel in Windows...
  • Photo Collection Manager with Content-Based Search -- Sometimes I like to quickly troll the raw link feed from del.icio.us because you never know what gems you might find. For instance, I caught a link to imgSeek, which is a photo collection manager with content-based search. Basically this...
  • In-Room Chat as a Social Tool -- Clay Shirky “… hosted a two-day brainstorming session for 30 or so people on the subject of social software. In addition to the usual “sit around a big table and talk to each other” format, [they] set up an in-room...
  • Define: Lazy Blogging -- The act of maintaining ones weblog via proxy or more specifically, using an API feature from a remote service, such as the one from del.icio.us, to automatically post to your blog. I’ve been using the daily blog posting feature of...
  • Recent Blogs With Context -- Technorati has an interesting new ranking of blogs by number of new links from blogs in the last 24 hours ...
  • links for 2005-07-07 --  MediaPortal – The ultimate HTPC / mediacenter Windows XP-based alternative to MythTV (open source too) (tags: Windows MythTV PVR Open_Source htpc) gwifi: Using GoogleMaps to find free Wi-Fi Google Maps WiFi finder (tags: Google Hacking WiFi) JustBlogIt with a...
  • links for 2005-08-01 --  Tech-Recipes.com – Recursively delete certain files I always forget this technique: “Using the find command, you can locate and delete files based on many attributes such as filetype. This recipe will demonstrate how to find and delete files based...



5 Comments to “Social Bookmarks Manager Right-Click Context Menu”

  1. Richard Soderberg | December 19th, 2003 at 4:37 am

    Hey, neat idea. Thanks :) Are there any limitations as to what kind of links it affects?

  2. Steven Hatch | December 19th, 2003 at 3:28 pm

    Hey Richard,

    Thanks!

    However, I’m not sure I understand your question?

    Once this hack is installed, you should be able to right-click on any page and the script will populate the appropriate fields in the del.icio.us link posting interface.

    Best,

    -s

  3. chip | January 3rd, 2004 at 5:25 am

    when i right-click on a link, the ‘post to delicious’ option is shown, but if so, then it should be made to carry the link’s url to the delicious webform. and it would work best if it also did a login as well.

  4. Steven Hatch | January 3rd, 2004 at 11:51 am

    Chip,

    Actually you point out something I neglected to mention…

    You do need to be logged into ‘delicious’ for this to work. This is the same case for the bookmarklet found on the ‘delicious’ site:

    http://del.icio.us/about

    However, once you are logged the right-click post option will carry the link’s URL as well as any text that is currently selected on the page.

    Unfortunately, I’m not sure there is a way (via JavaScript) to throw an exception if you are not logged into ‘delicious’.

    I suspect this is mainly because the logged in flag is a ‘cookie’ set by ‘del.icio.us’, which is inaccessible to any JavaScript running outside the ‘icio.us’ domain. (a security feature of JavaScript)

    If you know of any alternatives, please share…

    Thanks for the feedback.

    Best,

    -s

  5. chip | January 11th, 2004 at 1:14 pm

    Which url are you refering to in your response? When I right-click on a *link*, ‘post-to-delicious’ appears in the context menu and as such the url for that link should carry through to the delicious webform, it does not. The url for the *page* the link is on shows up in the form instead. As far as logging in, I don’t know if you can log in *and* pass all that is needed to begin a post, but using del.icio.us/login?user_name=USERNAME&password=PASS&jump=no gets the login done.