Evernote - Clean Print

Evernote - Clean Print style for new beta

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name          Evernote - Clean Print
// @namespace     http://userstyles.org
// @description   Evernote - Clean Print style for new beta
// @author        j3lte
// @homepage      https://greatest.deepsurf.us/nl/users/7475-j3lte
// @include       http://evernote.com/*
// @include       https://evernote.com/*
// @include       http://*.evernote.com/*
// @include       https://*.evernote.com/*
// @run-at        document-start
// @grant         none
// @version       0.0.3
// ==/UserScript==

// Copied from https://userstyles.org/styles/userjs/64201/Evernote%20-%20EyeFriendly.user.js

/*
    Removing unnecessary elements from the print stylesheet, make it more clean
*/

(function() {
    var css = "@media print { .logo-bar, .sharing-reportspam, .view-button, .footer.note-footer, .footer.wrapper, .sharing-menu { display:none!important; }";
    if (typeof GM_addStyle != "undefined") {
        GM_addStyle(css);
    } else if (typeof PRO_addStyle != "undefined") {
        PRO_addStyle(css);
    } else if (typeof addStyle != "undefined") {
        addStyle(css);
    } else {
        var node = document.createElement("style");
        node.type = "text/css";
        node.appendChild(document.createTextNode(css));
        var heads = document.getElementsByTagName("head");
        if (heads.length > 0) {
            heads[0].appendChild(node);
        } else {
            // no head yet, stick it whereever
            document.documentElement.appendChild(node);
        }
    }
})();