Create a Dellicious Bookmarklet in Firefox using Delicious API
- by Steve
I want to create a Delicious bookmarklet in Firefox that bookmarks the current page with a predefined tag.
For proof of concept, if I enter this url, it works:
https://john:[email protected]/v1/posts/add?url=http://www.google.com&
description=http://www.google.com&tags=testtag
But this as a bookmark doesn't, I get access denied:
javascript:(
function()
{
location.href = 'https://john:[email protected]/v1/posts/add?'
+ encodeURIComponent(window.location.href)
+ '&description=' + encodeURIComponent(document.title)
+ '&tags=testtag';
}
)()
Is this possible via a javascript bookmark?