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 bookmarklet doesn't, I get access denied:
javascript:(
function()
{
location.href = 'https://john:[email protected]/v1/posts/add?url='
+ encodeURIComponent(window.location.href)
+ '&description=' + encodeURIComponent(document.title)
+ '&tags=testtag';
}
)()
Is this possible via a javascript bookmark?
Update: I tried this, but still got the access denied error, so it has something to do with Javascript/Firefox.
javascript:(
function()
{
location.href = 'https://john:[email protected]/v1/posts/add?url='
+ 'http://www.google.com'
+ '&description=' + 'http://www.google.com' + '&tags=testtag';
}
)()
Update 2: After trying many variations of the above and on different browsers, I still can't get past the access denied message, so offering a bounty.