Create a Dellicious Bookmarklet in Firefox using Delicious API
Posted
by Steve
on Stack Overflow
See other posts from Stack Overflow
or by Steve
Published on 2010-04-25T16:36:53Z
Indexed on
2010/04/25
16:43 UTC
Read the original article
Hit count: 457
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?
© Stack Overflow or respective owner