News for hackers. Stuff that matters.
Re:The Printliminator by scottjackson on Thursday October 08, 2009 @03:42AM (#868561)
Very cool.

Though the one thing I kinda wish it had is an undo button -- if I accidentally remove something when I don't really want to, I'd like to not have to reload the page and click in all of the areas again (except the last one, of course).

I guess that would mean keeping track of what the last div/span/whatever you removed was, which I guess might be a little too involved for a bookmarklet. I wouldn't know -- I'm no JavaScript wizard.

Re:The Printliminator by buro9 on Thursday October 08, 2009 @03:49AM (#868569)
I haven't looked at the code, but I suspect they're just using display:none to hide elements. There's no reason you couldn't use an array as a stack so that you could keep track of the identifiers for the elements that have been hidden and then allow an undo mechanism. For elements without an id you'd add something of your own, probably a cssclass. An undo system is not too difficult to implement.
Re:The Printliminator by jlees on Thursday October 08, 2009 @08:01AM (#868815)
Yeah, first thing I did was wonder where the undo button is. Still, looks amazingly useful.
Re:The Printliminator by blasdel on Thursday October 08, 2009 @03:50AM (#868570)
Congratulations, I'm not sure how he managed to make a Mac-specific bookmarklet, but he did!

I was willing to overlook it if he was just foppishly referring to option-click under the assumption that his ideal user would be using a Mac too, but no -- the functionality doesn't work with any of the modifier keys in any Gecko or Webkit browser on Linux.

Re:The Printliminator by yannis on Thursday October 08, 2009 @05:41AM (#868673)
It is all done with CSS. Changing removing elements from the print css. When you done the old, javascript

    .click(function () {
 		window.print();
    } 
By the way they have used jQuery. Three cheers very well done!
Re:The Printliminator by Luc on Thursday October 08, 2009 @07:36AM (#868781)
Alt-click works for me on Firefox & Vista.
Re:The Printliminator by niyazpk on Thursday October 08, 2009 @07:16AM (#868764)
This is extremely useful. Thanks guys!

Another useful bookmarklet is readability: http://lab.arc90.com/experiments/readability/

Re:The Printliminator by tjweir on Thursday October 08, 2009 @10:48AM (#869078)
Using this and Readability yield great results.

I find that Readability decides on the wrong bit of content sometimes. So use Printliminator's Option-Click to select what you want to keep and then run Readability to format it nicely.

Re:The Printliminator by brunoqc on Thursday October 08, 2009 @04:00AM (#868584)
Nice, it's like the Firefox extension Aardvark but in a bookmarklet.
Re:The Printliminator by aw3c2 on Thursday October 08, 2009 @05:23AM (#868659)
Works well with Opera.

I wish they was an undo function though.

Re:The Printliminator by mlok on Thursday October 08, 2009 @05:30AM (#868661)
Okay, but there is no "Option" key on my non-Mac computer.
Re:The Printliminator by devongovett on Thursday October 08, 2009 @07:26AM (#868773)
Thats what the ALT key is for.
Re:The Printliminator by mlok on Monday October 12, 2009 @06:22AM (#876416)
That's what I thought too, but it doesn't work here (for me at least / Ubuntu + Firefox)
Re:The Printliminator by saurabh on Thursday October 08, 2009 @05:04AM (#868641)
Isn't this similar to printwhatyoulike.com ?