Optimisation de l’impression sur lemonde.fr

Retire les éléments étrangers au contenu des articles lors de l’impression ou l’export en PDF à partir de lemonde.fr

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           Optimisation de l’impression sur lemonde.fr
// @name:en        Print optimization on lemonde.fr
// @namespace      http://tampermonkey.net/
// @version        0.1
// @description    Retire les éléments étrangers au contenu des articles lors de l’impression ou l’export en PDF à partir de lemonde.fr
// @description:en Removes the elements unrelated to articles content when printing or exporting as PDF from lemonde.fr
// @author         Olivier Croquette
// @match          https://www.lemonde.fr/*
// @require        https://code.jquery.com/jquery-3.7.1.min.js
// @icon           https://www.lemonde.fr/bucket/assets/8158900ace61db3c0dca20c33d835d7d78b6c2f7/img/landing_page_mobile/applis/icon-jelec.png
// @grant          GM_addStyle
// @license        MIT
// ==/UserScript==

/* global $ */

(function() {
    'use strict';
    GM_addStyle(`@media print {
                .catcher { display: none !important; }
                .inread { display: none !important; }
                .services { display: none !important; }
                .services-carousel { display: none !important; }
                }`);
})();