Last week, I discovered that the standard ‘save to delicious’ bookmarklet pretty much sucks on the iPhone. It tries to open a new window. It doesn’t use the mobile version of delicious. When I got back, I realized that nothing I’d been saving actually got saved.
The mobile edition itself is rather good, but its save function doesn’t fill in the URL and title for you. That’s obviously less than ideal; who wants to cut and paste all that junk? I mashed up this code with the original bookmarklet and came up with this:
javascript:(function(){var newUrl='http://m.delicious.com/save?url=';var thisUrl=encodeURIComponent(location.href);var title='&title='+encodeURIComponent(document.title);location.href=newUrl+thisUrl+title;})();==
It doesn't open a new window, and it does preload the URL and title. Now if delicious will just get tag autocompletion working, bookmarking on the iPhone will be just about perfect.
el says
Does this work on your phone?:
var d=document,str=’m.delicious.com/save?’;if(d.URL.match(str)){-1,s=d.body.appendChild(d.createElement(‘script’));void(s.innerText=”var d=document;d.forms1[8].onblur=function(){d.forms1[10].focus()}”);scrollBy(0,d.body.scrollHeight);d.forms1[8].focus()}else{function euc(uric){return encodeURIComponent(uric)};function del(){f=”http://”str“url=”euc(location)“&title=”euc(d.title)“&jump=yes”+”¬es=I am a note”;a=function(){open(f)};a()};del()};
If not, then try the del forums. You’ll probably get a more relevant answer.
el says
Sorry. Corrupted. Script here:javascript private pastebin – collaborative debugging tool
el says
javascript private pastebin – collaborative debugging tool
el says
Code here: http://javascript.pastebin.com/m146bc9f6