Created
March 23, 2012 05:50
-
-
Save twnaing/2167389 to your computer and use it in GitHub Desktop.
Bookmarklet code to add delicious bookmark in iPad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:( | |
function(){ | |
f=’http://delicious.com/save?url=’+encodeURIComponent(window.location.href)+’&title=’+encodeURIComponent(document.title)+’&v=5&’; | |
a=function() | |
{ | |
if(!window.open(f+’jump=doclose’,'deliciousuiv5′,’location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550′)) | |
location.href=f+’jump=yes’ | |
}; | |
if(/Firefox/.test(navigator.userAgent)) | |
{ | |
setTimeout(a,0); | |
} | |
else | |
{ | |
a(); | |
} | |
} | |
)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code from (How to add a Delicious Bookmarklet on my iPad with Safari)[http://www.thomasecook.com/how-tos/how-to-add-a-delicious-bookmarklet-on-my-ipad-with-safari/]