VRoid Hub Remove Blur Filter

Removes blur filter from images on the site

  1. // ==UserScript==
  2. // @name VRoid Hub Remove Blur Filter
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Removes blur filter from images on the site
  6. // @author lola8
  7. // @match *://hub.vroid.com/*
  8. // @grant none
  9. // @license MI
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Function to remove blur filter
  16. function removeBlur() {
  17. // Find all elements with inline styles
  18. const elements = document.querySelectorAll('[style*="filter: blur"]');
  19. elements.forEach(el => {
  20. // Remove only the blur style
  21. el.style.filter = '';
  22. });
  23. }
  24.  
  25. // Launch deletion when the page loads
  26. window.addEventListener('load', removeBlur);
  27.  
  28. // We launch a repeated deletion when the page changes (dynamic content)
  29. const observer = new MutationObserver(() => removeBlur());
  30. observer.observe(document.body, { childList: true, subtree: true });
  31. })();