Disable Hyperlink Auditing

A simple script that removes hyperlink auditing from all websites.

  1. // ==UserScript==
  2. // @name Disable Hyperlink Auditing
  3. // @namespace https://tech.jacenboy.com/hyperlink-auditing
  4. // @version 1.3
  5. // @description A simple script that removes hyperlink auditing from all websites.
  6. // @author JacenBoy
  7. // @match http*://*/*
  8. // @grant none
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var pings = 0;
  16. var hyperlinks = Array.from(document.getElementsByTagName("a"));
  17. hyperlinks.forEach(a => {
  18. if (a.hasAttribute("ping")) {
  19. a.removeAttribute("ping");
  20. pings++;
  21. }
  22. if (a.hasAttribute("data-ping-url")) {
  23. a.removeAttribute("data-ping-url");
  24. pings++;
  25. }
  26. });
  27. if (pings > 0) {
  28. console.log(`${pings} ${pings > 1 ? "links" : "link"} defused.`);
  29. }
  30. })();

QingJ © 2025

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