Remove Blur Class

Remove blur prefix from image class names

目前为 2024-07-03 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Remove Blur Class
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-07-03
  5. // @description Remove blur prefix from image class names
  6. // @author manTron
  7. // @license MIT
  8. // @match https://www.nexusmods.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=juejin.cn
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. "use strict";
  15. function removeBlurPrefix() {
  16. (document.querySelectorAll("[class*='blur-']")).forEach((img) => {
  17. // check if button
  18. if (img.tagName != "BUTTON") {
  19. img.classList.forEach((cls) => {
  20. if (cls.includes("blur-")) {
  21. img.classList.remove(cls);
  22. }
  23. });
  24. }else{
  25. img.remove();
  26. }
  27. });
  28. }
  29. setInterval(removeBlurPrefix, 1000);
  30. })();