- dadagui

dadagui

  1. // ==UserScript==
  2. // @name - dadagui
  3. // @namespace tytyty
  4. // @version 1.0
  5. // @description dadagui
  6. // @author tuyun
  7. // @match http://www.dadagui.la/*
  8. // @run-at document-idle
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. // 选择要移除的元素
  13. // 获取所有页面元素
  14. const elements = document.querySelectorAll('*');
  15.  
  16. // 移除元素
  17. function removeElements() {
  18. elements.forEach(element => {
  19. const zIndex = window.getComputedStyle(element).zIndex;
  20. if (zIndex === '100' || zIndex==='10') {
  21. element.remove(); // 设置 display 为 none,隐藏元素
  22. }
  23. });
  24. }
  25. // 在页面加载完成后执行
  26.  
  27. // 在页面加载完成后执行
  28. removeElements();
  29.  
  30.  
  31.  
  32.  
  33. })();