api post call broken in javascript quicksearch bookmarklet

View: New views
1 Messages — Rating Filter:   Alert me  

api post call broken in javascript quicksearch bookmarklet

by myfaceisben :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've been using a hastily hacked together javascript quicksearch
bookmarlet (below) in firefox to post my current web page to delicious
for a couple of weeks. A day ago it stopped working (not adding new
posts). With no obvious errors coming back.

Can anyone suggest what might have changed? Has the API blocked
something I'm doing? Anyone have any ideas how I might debug this?

Thanks,
Ben

--

adds the current page to delicious using one of these 3 formats:
+
+ tag1 tag2
+ short description of the page - tag1 tag2 tag3

javascript:(function() {var t,q,e,i,p,j;with(document) { j =
body.appendChild(createElement("iframe")); };j.style.display =
'none';t='%s';q=location.href;e ='' + (window.getSelection ?
window.getSelection() : document.getSelection ? document.getSelection()
: document.selection.createRange().text); p=document.title;i=t.indexOf('
- ');if(i>=0){(e=='')?e=t.substring(0,i):e='%22'+e+'%22
'+t.substring(0,i);t=t.substring(i+3,t.length)};j.src=(t=='%'+'s')?'http\
s://api.del.icio.us/v1/posts/add?url='+encodeURIComponent(q)+'&descripti\
on='+encodeURIComponent(p)+'&extended='+encodeURIComponent(e)+'&replace=\
no':'https://api.del.icio.us/v1/posts/add?url='+encodeURIComponent(q)+'&\
description='+encodeURIComponent(p)+'&tags='+encodeURIComponent(t)+'&ext\
ended='+encodeURIComponent(e)+'&replace=no';})();


[Non-text portions of this message have been removed]