Home Link

Hello, my name is Brett Terpstra, and it’s nice to meet you. Elegant solutions to complex problems. Curious?

Post thumbnail for post 52

Readability2 leaks out

Nov 02
2009

So my modification of the Readability bookmarklet kind of snuck out before it was ready, but it's my own fault. Now I'm scrambling a little to make it more presentable and less of a straight-up hack of the excellent original. I wanted to make a few things clear about my goals and purpose on this one.

First the entire project was really a subset of my attempt at a better Evernote clipper for Snow Leopard. One which allowed me to preserve code formatting and automatically remove comments and ads from the post, in a smarter fashion than the current Safari clipper does. I built it as a System Service and run it with a hotkey. You can download it and try it out, if you like. I'll make a more accessible version with instructions shortly.

This is why I removed the formatting options from the bookmarklet... Evernote was going to strip all of that out anyway. Originally, I was just using the code to strip out ads and find the meat. The modifications to preserve code blocks, movies, etc. were simply working toward the "perfect" Evernote clip.

It works for what it is, but wasn't really intended to be used without the Evernote Service. If I get enough feedback, and no cease and desist orders from the original creators, I'll continue to modify it. One thing you can certainly do to help is provide me with URL's to pages it fails on; the more scenarios I can study, the smarter I can make it.

Related posts:

25 Responses to “Readability2 leaks out”

  1. Bill Pier says:

    While I applaud your effort, nam­ing the tool ReadAbility2 is really a mis­nomer since the options of the orig­i­nal are what really make work nicely; i.e., you end up with a page that is read­able with options that the user selects. Since your tool isn’t about read­able web pages, per­haps a name change is appropriate.

  2. admin says:

    I don’t dis­agree. The name was a quick deci­sion, just an inter­nal homage to the orig­i­nal authors. This ver­sion really wasn’t ready for mass expo­sure, and I agree that the focus is not so much on read­abil­ity as on locat­ing con­tent and pre­serv­ing impor­tant for­mat­ting. I’ll come up with some­thing… “Cli­pa­bil­ity,” perhaps.

  3. Tomaz says:

    I click on the link to the “cli­pable” site and it indi­cates to “drag to book­marks tool­bar.” I am using IE 7 and I can­not DRAG it to anything.

    With the orig­i­nal “Read­abil­ity”, I was able to drag it to the “Links” folder in My Favorites and then open it in my Links Bar in the browser where it now sits.

    First, will this work with IE7 and if so, how do I get it installed? Help a Senior Cit­i­zen out, please.

    Thanx…Tomaz

  4. Tomaz says:

    Ref my ear­lier email regard­ing installing on IE7. I just got it to work: dooh!!

    Thanx for a ter­ric tool and great health and luck in the future with all you do.

    Tomaz.…. ——Orig email—-

    I click on the link to the “cli­pable” site and it indi­cates to “drag to bookmarks ”

  5. brett says:

    Thanks, Tomaz, glad it’s work­ing. I wasn’t sure what was going wrong there :).

  6. Larry says:

    Clip­pable works fine on the first page of a mul­ti­ple page site but if I try it on the sec­ond page it reverts back to the first page. The sec­ond page doesn’t work with Clip­pable. Any options for this?

  7. Chris Dillon says:

    Hi Brett,

    Thanks for Clip­pable, I love it! Works great, nice work.

    I’d like to see it remove those context-sensitive mouseover Vibrant ads like at the top of this page: http://www.entrepreneur.com/startingabusiness/businessplans/article38308-3.html

    What do you think?

    Chris

    • Brett says:

      They don’t actu­ally func­tion in the clipped page, right? No hover pops up for me. You’d just like to turn the links into plain text, then? Let me know before I start tack­ling the challenge :).

  8. flawedplan says:

    Dal­las Morn­ing News, almost always a problem.

    This page is fine with read­abil­ity, linky with clippable

    http://www.dallasnews.com/sharedcontent/dws/dn/latestnews/stories/012310dnmethappy.4263c78.html

    But most of the time, it’s noth­ing but links.

    Of course DMN has ter­ri­ble for­mat­ting, don’t know if you can do any­thing with it.

    I use the tool most every­day, with about 30 news­pa­pers, grate­ful and no complaints.

    • Brett says:

      Thanks for the report, I’ll gladly take a look at it.

    • Brett says:

      That par­tic­u­lar link yields the expected results… I loos­ened the orig­i­nal require­ments for pro­cess­ing of a div to accom­mo­date linked images wrapped in divs, so the lit­tle block of links is par for the course. I tried some other pages, though, and you’re right: the for­mat­ting is SOOO bad there’s not much I can do about it. Readability/Clippable scans for divs, and DMN has wrapped their con­tent in span tags. That’s not even “legal” HTML, so I can’t really mod­ify for that with­out mak­ing a whole new set of site-specific func­tions. Sorry :(.

  9. Roy says:

    Hi Brett,

    I’ve been using Clippable/Readability2 plenty on my com­puter for read­ing arti­cles, and I real­ized that my iPod touch ben­e­fits from it, except x1000 because there’s so much less screen space in the first place. But with a cou­ple of mod­i­fi­ca­tions it works even better.

    In readability.js: var readStyle=‘style-newspaper’; var readSize=‘size-midlarge’; var readMargin=‘margin-narrow’;

    Then add a size-midlarge option to the css file, it’s really just a mat­ter of pref­er­ence but I found medium a lit­tle too small and large a lit­tle too large; I set­tled on 22.

    The last thing is to add a tag which seems to tell the ipod to see the width of the arti­cle as the width of the page and lock the zoom– some­times it takes a dou­ble tap after you run the book­marklet though. Basi­cally add this to the end of the book­marklet code:

    n = document.createElement('meta');
    n.name = "viewport";
    n.content = "width=device-width; initial-scale=1.0; maximum-scale=1.0;";
    document.getElementsByTagName('head')[0].appendChild(n);
    

    The final result will turn a nytimes.com page (and any other arti­cle!) into a pretty close sim­u­lacrum of the view in the NYT app.

  10. Roy Wiggins says:

    Yeah for sure, I don’t have a blog set up atm so it’s prob­a­bly easiest!

    I might talk to who­ever it is behind the orig­i­nal Read­abil­ity, maybe add an iPhone option? Any­way I used your ver­sion of it, so go for it.

  11. Roy Wiggins says:

    Also– if you didn’t know, It’s a bit of a pain to add book­marklets to Mobile Safari. Basi­cally you have to copy and paste the con­tents of the book­marklet into the URL field of an exist­ing bookmarklet.

    Basi­cally, just put the link in plain­text so it can be copied– you can’t click on a javascript link and copy the con­tents of it, for some reason.

  12. Dave says:

    awe­some app. it would be great if we could cus­tomize the set­tings before drag­ging the book­marklet à la http://readable-app.appspot.com/setup.html

    i like yours bet­ter because it focuses just on the text i’m inter­ested in read­ing and not the adds etc.

    even just let­ting me cus­tomize the Color/Theme and Font Size would be great.

    • Brett says:

      The goal of Clip­pable is to cre­ate “clip­pable” text for copy­ing to other programs/readers, han­dling sin­gle images and code blocks bet­ter than the orig­i­nal. While cus­tomiz­abil­ity is pos­si­ble, I think you’ll find the orig­i­nal Read­abil­ity book­marklet prob­a­bly does what you want, doesn’t it?

    • Brett says:

      Just added a cou­ple of styles that you can access with the left and right arrow keys. It’s not as good as hav­ing default styles yet, but I’m work­ing on that.

  13. Dan OBrien says:

    I love Clip­pable — a gift for sore eyes. But I wish I could ‘Esc’ (or oth­er­wise back­track) to the orginal page to con­tinue surf­ing, read­ing another link, etc.

  14. […] uses code uncer­e­mo­ni­ously lifted from the orig­i­nal Read­abil­ity. For more infor­ma­tion, see the post here. If you’re an iPhone user, be sure to check out Clippable […]

Leave a Reply

Entries (RSS) and Comments (RSS).

Switch to Mobile version