Social Bookmarks Manager Right-Click Context Menu
Blogs December 18th, 2003
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.
- Simply click on the following link to remove the menu and follow a similar procedure to what was mentioned above: remove-post-to-del-icio-us.reg
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!
About
Hey, neat idea. Thanks :) Are there any limitations as to what kind of links it affects?
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
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.
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
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.