Last active
March 7, 2022 05:50
-
-
Save Hunlongyu/d318d01e3d158c4bddb7a84762736345 to your computer and use it in GitHub Desktop.
『净网卫士』 DeepL翻译
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 『净网卫士』 DeepL翻译 | |
// @author Hunlongyu | |
// @namespace https://github.com/Hunlongyu | |
// @icon https://i.loli.net/2019/04/22/5cbd720718fdb.png | |
// @description 页面精简,去除广告,只保留主要功能的部分。 | |
// @version 0.1.1 | |
// @include https://www.deepl.com/* | |
// @grant GM_addStyle | |
// @grant GM_log | |
// @run-at document-start | |
// @supportURL https://gist.github.com/Hunlongyu/2d7cc7db66b79831c3af23cc52a85845 | |
// @note 2022/03/04 精简页面 | |
// @note 2022/03/07 移除订阅提示 | |
// ==/UserScript== | |
(function () { | |
'use strict' | |
let css = ` | |
.dl_header{display: none;} | |
#dl_cookieBanner{display: none;} | |
.lmt__language_container_sec{display: none;} | |
#lmt_pro_ad_container{display: none;} | |
#dl_quotes_container{display: none;} | |
.eSEOtericText{display: none !important;} | |
.dl_footerV2_container{display: none;} | |
.lmt__rating {display: none;} | |
.lmt__target_toolbar__share_container{display: none;} | |
.deepl-ui-snackbar-portal{display:none;} | |
` | |
try { | |
GM_addStyle(css) | |
} catch (e) { | |
GM_log(new Error('GM_addStyle stopped working!')) | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment