Greasy Fork is available in English.
移除广告,精简页面。
当前为
// ==UserScript==
// @author Hunlongyu
// @name 吾爱破解论坛-净网卫士
// @namespace https://github.com/Hunlongyu
// @icon https://i.loli.net/2019/04/22/5cbd720718fdb.png
// @description 移除广告,精简页面。
// @version 0.2.1
// @include *://*.52pojie.cn/*
// @grant GM_addStyle
// @run-at document-start
// @supportURL https://gist.github.com/Hunlongyu/5eef950d53b733dd67abda224ebed238
// ==/UserScript==
(function() {
'use strict';
// Your code here...
const css = `
/* 页面背景 */
body{ background: none !important }
/* 顶部工具条 */
#toptb{ display: none !important; }
/* 版规 */
.bml{ display: none; }
/* 帖内广告:水平 + 竖直 */
.dnch_eo_pt, .dnch_eo_pr{ display: none !important; }
/* 用户签名 + 签名下的提示 */
.sign, .dnch_eo_pb{ display: none !important; }
/* 底部免责声明 */
.res-footer-note{ display: none !important; }
/* 底部广告 */
.dnch_eo_f{ display: none !important; }
/* 回帖框背景图 */
#f_pst #fastpostmessage{ background: none !important }
`
try {
GM_addStyle(css)
} catch(e) {
console.log('脚本失效,刷新后重试。', e)
}
})();