• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Content Modeling for WordPress
    • WordPress Hidden Gems
    • Web Design
  • Work
    • Presentations and Interviews
    • on GitHub →
    • MLIS Class Projects (2019-2022)
    • Portfolio (2002-2019)
    • WordPress Plugins

Stephanie Leary

Writer, Front End Developer, former WordPress consultant

  • About
    • Press Kit
    • Presentations and Interviews
  • Contact Me

a better save bookmarklet for delicious on the iPhone

October 11, 2009 Stephanie Leary 4 Comments

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.

Macs, Techy Goodness code

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

Reader Interactions

Comments

  1. el says

    October 15, 2009 at 1:23 am

    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”+”&notes=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.

    Reply
  2. el says

    October 15, 2009 at 1:28 am

    Sorry. Corrupted. Script here:javascript private pastebin – collaborative debugging tool

    Reply
  3. el says

    October 15, 2009 at 1:29 am

    javascript private pastebin – collaborative debugging tool

    Reply
  4. el says

    October 15, 2009 at 1:31 am

    Code here: http://javascript.pastebin.com/m146bc9f6

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

My Books

I’m a front end developer at Equinox OLI, working on open source library software. I was previously a freelance WordPress developer in higher education. You can get in touch here or on LinkedIn.

Copyright © 2025 Stephanie Leary · Contact