Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/CSS-Tricks/The-Printliminator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa446b2b31a4411409467aba0b43c156e3266513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
The Printliminator is a bookmarklet with some simple tools you can use to makes websites print better.
One click to activate, and then click to remove elements from the page, remove graphics, and apply better
print styling.

![screenshot](https://cloud.githubusercontent.com/assets/136959/9867743/caff5512-5b36-11e5-92e5-2b2e022be437.png)

[Get the Bookmarklet here](//css-tricks.github.io/The-Printliminator/)

### Limitations

* Due to Content Security Policy directives on some sites, the Printliminator script is not able to load on some sites (e.g. GitHub). To get around this problem, a Chrome extension is being developed. Hopefully, Opera, Firefox & Safari extensions/addons will quickly follow.

### To Do

* [ ] Add documentation to the wiki pages.

### Recent Changes

#### Version 3.1.1 (9/14/2015)

* Readme: Fix screenshot
* Design update!
* A `bookmark.html` was added to the Grunt build. Importing this file into your Bookmarks will allow inclusion of a Bookmarklet icon. Instructions will be added to the wiki pages soon.
* All images were compressed.

#### Version 3.1.0 (9/1/2015)

* Change design of popup (design by Chris Coyier); see screenshot!
* Removed jQuery dependency; lots of internal structural changes made.
* Add keyboard commands. See screenshot for the complete list.
* Make popup draggable.
* Note:
  * This bookmarklet may still not work on some sites that have a strict Content Security directive.
  * We are working on making this bookmarklet into a browser extension!
  * It might be best to include both in this repository; use the bookmarklet for older browsers, or in browsers where an extension has not yet been made.

#### Version 3.0.0 (8/24/2015)

* Reformat code (clean up mixed tabs & spaces).
* Add misc config files.
* Update demo page to match original article.
* Internalize all css & modify code to use css class names.
* Save each replaced background image for undo method.
* Add flags to prevent repeated modifications - This also makes the undo easier to use; click add print stylesheet multiple times, but only click undo once to remove it.
* Archive unused files.
* Add demo folder & optimized png files (:heart: https://tinypng.com/).
* Add grunt build process.
  * Make all changes to the `src` folder files as the root `index.html` is now dynamically generated.
  * [Protocol-relative urls](http://www.paulirish.com/2010/the-protocol-relative-url/) are now used in the production bookmarklet.
  * Running root `index.html` in a local environment will alter the bookmarklet to use local files (development mode); so don't save that bookmarklet!
  * The actual bookmarklet code (`src/bookmarklet.js`) is now compressed and added to the `index.html` file during the build.
* Remove unused variable.
* Update readme.

### Credits

* By [Chris Coyier](http://chriscoyier.net) and [Devon Govett](http://devongovett.wordpress.com/).
* Some contributions by [Rob Garrison](http://wowmotty.blogspot.com/).
* Icons by [Function](http://wefunction.com/2008/07/function-free-icon-set/).
* Print stylesheet based on [Hartija](http://code.google.com/p/hartija/).