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: 673ffec91ba5026e5f8a20017fba71b5e964b70a (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
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/9610695/cb3e4a4c-50a0-11e5-96cb-e3e54a9c88d5.png)

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

### To Do

* [x] Add keyboard commands to alter the targeted element. For example:
  * <kbd>pageUp</kbd> to select parent of hovered element
  * <kbd>pageDown</kbd> to select child of hovered element (not sure what to do if the mouse moves though)
  * <kbd>Enter</kbd> to hide outlined element.
  * <kbd>Esc</kbd> to cancel.
* [x] Make Printliminator window draggable.
* [x] Remove jQuery dependency.
* [ ] Add documentation to the wiki pages.

### Recent Changes

#### 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/).