Email Print Page Cleaner is a little tool that I created a while ago to allow people to remove the Gmail logo from pages that they wanted to print. It only removes the logo on the print page.
I’ll briefly go over the changes I have made to the project.
Options page and Extra Removals
What I have done now is added an options window which allows additional choice as to what to remove, and gives even more options of what to remove than before.
A user can remove the following:
- Hide the Gmail logo
- Hide your email address
- Hide the subject
- Hide the sender details
These options can be seen in the screenshot of the options below:
Check if print page
So my method to avoid some extra code being executed is to just check if it starts with “Gmail”
//Check if it a print page
//Extensions code here
How the Extension Came to be
I never thought there would be this much demand for such an extension (over 1000 people use it), and actually only made it for one person originally who had asked a questions on Stack Exchanges Webapps question site. I just released it to the public in case others were also interested and it looks like they were.
The code for this project can all be found on Github.
I used Google Chrome’s new v2 options page which nicely allow me to integrate the options page directly in the extensions list page as a pop-up. This also appears to be the new standard that will be used and the old one is being phased out.
Of course I opted to use Chrome’s sync function so that a users preferences are synced to their other systems as well. Oddly enough not many extension use the sync storage. Granted it does not store as much data, but it should still be enough for most.
If there are any problems feel free to leave a comment on this post or email me at firstname.lastname@example.org