Greasy Fork

Greasy Fork is available in English.

文学城去广告

文学城Kill Ads

当前为 2020-09-09 提交的版本,查看 最新版本

// ==UserScript==
// @name         文学城去广告
// @namespace    https://github.com/frinkr/my-scripts
// @version      0.1
// @description  文学城Kill Ads
// @author       frinkr
// @match        *://www.wenxuecity.com/*
// @require      http://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    setInterval(function () {
        $('div[class=wxc-ab-root]').remove();
        $('div[class=fc-ab-root]').remove();
        document.body.style.position = '';
        document.body.style.top = '';
        document.body.style.overflow = 'auto';
    }, 500)
})();