『净网卫士』 百度翻译
// ==UserScript== | |
// @author Hunlongyu | |
// @name 『净网卫士』 百度翻译 | |
// @namespace https://github.com/Hunlongyu | |
// @icon https://i.loli.net/2019/04/22/5cbd720718fdb.png | |
// @description 页面精简,去除广告,只保留主要功能的部分。 | |
// @version 0.1.4 | |
// @include *://fanyi.baidu.com/* | |
// @grant GM_addStyle | |
// @grant GM_log | |
// @run-at document-start | |
// @updateURL https://gist.githubusercontent.com/Hunlongyu/2d7cc7db66b79831c3af23cc52a85845/raw/baidu_fanyi.user.js | |
// @downloadURL https://gist.githubusercontent.com/Hunlongyu/2d7cc7db66b79831c3af23cc52a85845/raw/baidu_fanyi.user.js | |
// @supportURL https://gist.github.com/Hunlongyu/2d7cc7db66b79831c3af23cc52a85845 | |
// @note 2019/09/05 移除第一次进入百度翻译时,弹出的向导弹框 | |
// ==/UserScript== | |
(function () { | |
'use strict' | |
let css = ` | |
.header{display: none;} | |
.footer{display: none !important;} | |
.manual-trans-btn{display: none !important;} | |
.trans-other-right{display: none;} | |
.app-guide{display: none !important;} | |
` | |
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