global ad remover using referrerpolicy

removes ads routed over the current domain (identified using referrerpolicy=unsafe-url)

// ==UserScript==
// @name         global ad remover using referrerpolicy
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  removes ads routed over the current domain (identified using referrerpolicy=unsafe-url)
// @author       cabtv
// @match        https://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addGlobalStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    }

    addGlobalStyle('[referrerpolicy="unsafe-url"] { display: none !important; }');
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址