Greasy Fork

Greasy Fork is available in English.

NGA去广告

remove ads on nga

目前为 2023-08-20 提交的版本,查看 最新版本

// ==UserScript==
// @name         NGA去广告
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  remove ads on nga
// @author       You
// @match        *://bbs.nga.cn/*
// @match        *://ngabbs.com/*
// @match        *://nga.178.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=nga.cn
// @grant        none
// @license MIT
// @run-at document-start
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
    console.log('script load start');
    if (!window.ngaAds) {
      window.ngaAds = [];
    }
    var t = window.ngaAds;
    Object.defineProperty(t, 'ignore', {
        value: function() { return true; },
        writable: false,
        configurable: false,
    });
    console.log('script load end: ', window.ngaAds);
})();