Greasy Fork

Greasy Fork is available in English.

吾爱破解论坛-净网卫士

移除广告,精简页面。

当前为 2019-06-20 提交的版本,查看 最新版本

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

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

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

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

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

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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)
    }
})();