🔥 持续更新 🔥 去除百度翻译页面中的多余广告和元素。
当前为
// ==UserScript==
// @name 百度翻译 - 页面净化
// @version 0.1.2
// @description 🔥 持续更新 🔥 去除百度翻译页面中的多余广告和元素。
// @author WengX
// @namespace https://github.com/wengx-unx
// @supportURL https://gist.github.com/wengx-unx/be2d30e6a9cb3cfa9dda53a8910e3b4c
// @match *://fanyi.baidu.com/*
// @icon https://img1.imgtp.com/2023/02/25/YCeeiEQ1.png
// @grant GM_addStyle
// @license MIT
// ==/UserScript==
(function() {
'use strict';
/** 清除样式 */
const purge_css = `
#app-read,
#transOtherRight,
.footer,
.extra-wrap,
.op-trans-fb,
.nav-dxy-logo,
.nav-sort-btn,
.dictionary-tags,
.note-expand-btn,
.manual-trans-btn,
.dictionary-bottom,
.navigation-wrapper
{
display: none !important;
}
`
/** 设置清除样式 */
GM_addStyle(purge_css);
/** 自定义样式 */
const custom_css = `
.trans-other-wrap-left-part { width: 100% !important; }
`
/** 设置自定义样式 */
GM_addStyle(custom_css);
// Your code here...
})();