fix null byte links

don't get shot

  1. // ==UserScript==
  2. // @name fix null byte links
  3. // @include *
  4. // @version 1.0
  5. // @namespace someone at reddit
  6. // @grant none
  7. // @run-at document-start
  8. // @description don't get shot
  9. // ==/UserScript==
  10.  
  11. var el = document.createElement("style");
  12.  
  13. el.innerHTML = `
  14. a[href*="%%30%30"],
  15. a[href*="%%3000"],
  16. a[href*="%%"]{
  17. pointer-events: none!important;
  18. color: yellow!important;
  19. background: red!important;
  20. background-color: red!important;
  21. }
  22. `;
  23.  
  24. (document.head || document.documentElement).appendChild(el);