Disable Hyperlink Auditing

A simple script that removes hyperlink auditing from all websites.

Stan na 19-05-2019. Zobacz najnowsza wersja.

// ==UserScript==
// @name         Disable Hyperlink Auditing
// @namespace    https://tech.jacenboy.com/hyperlink-auditing
// @version      1.1
// @description  A simple script that removes hyperlink auditing from all websites.
// @author       JacenBoy
// @match        http*://*/*
// @grant        none
// @run-at document-end
// ==/UserScript==

(function() {
    'use strict';

    var pings = 0;
    var hyperlinks = Array.from(document.getElementsByTagName("a"));
    hyperlinks.forEach(a => {
        a.removeAttribute("ping");
        pings++;
    });
    
    if (pings > 0) {
        console.log(`${pings} links defused.`);
    }
})();