nullify-all-links

Prevent all links from working.

  1. // ==UserScript==
  2. // @name nullify-all-links
  3. // @namespace https://github.com/ahuanguchi
  4. // @version 1.0.1
  5. // @description Prevent all links from working.
  6. // @author ahuanguchi
  7. // @match *://*/*
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12. window.addEventListener("load", function () {
  13. var i;
  14. var anchors = document.getElementsByTagName("a");
  15. var numAnchors = anchors.length;
  16. for (i = 0; i < numAnchors; i += 1) {
  17. anchors[i].removeAttribute("href");
  18. }
  19. });

QingJ © 2025

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