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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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; }
                }`);
})();