CSS-Tricks / The-Printliminator

https://css-tricks.github.io/The-Printliminator/
GNU Lesser General Public License v3.0
352 stars 42 forks source link

Export Print Styles #9

Open ryanaltvater opened 8 years ago

ryanaltvater commented 8 years ago

I don't know if this should be a feature request, an idea for a separate developer-targeted version, or if it's even feasible. Once you've clicked the elements you want to display for print, it would be cool to have the ability to export styles for a print stylesheet.

Mottie commented 8 years ago

Hi @ryanaltvater!

It sounds great, but I think it might be troublesome to implement.

First, the bookmarklet/extension uses javascript to add a class to hide the selected element. That element may or may not have a unique identifier. And even if it did, it may be unique to an article (article ID) making it unusable for other articles on the same site.

Second, if an element doesn't have a class or id, then the code would have to resort to using something like an nth-child selector which would be unreliable is any changes were made to the site.

Lastly, the best idea would be to contact the owners of the site telling them they really need to work on their print style.

So, I'm not saying there is no way in heck this will ever happen, but I am open to ideas and feedback.

ryanaltvater commented 8 years ago

@Mottie

Definitely all valid points. I just wanted to bring up the idea of a "point & click"-style tool that could make print stylesheets quicker, easier, and less painful to build. It's easy to envision it with a tool like this, but execution is the real question. :)