DisplayAll

Display all hidden elements on the web pages

  1. // ==UserScript==
  2. // @name DisplayAll
  3. // @namespace None
  4. // @version 0.0.1
  5. // @description Display all hidden elements on the web pages
  6. // @author XenoAmess
  7. // @license MIT
  8. // @match http://*/*
  9. // @match https://*/*
  10. // @run-at document-body
  11. // @grant none
  12. // @supportURL https://github.com/XenoAmess/display_all.git
  13. // ==/UserScript==
  14.  
  15. var REFRESH_TIME = 100;
  16.  
  17. function doIt() {
  18. var allElements = document.getElementsByTagName("*");
  19.  
  20. for (var i=0, max=allElements.length; i < max; i++) {
  21. var element = allElements[i];
  22. if(element.style.display === "none"){
  23. element.style.display = "block";
  24. }
  25. if(element.style.visibility === "hidden"){
  26. element.style.visibility = "visible";
  27. }
  28. }
  29. }
  30.  
  31. (function () {
  32. 'use strict';
  33. window.onload = window.setInterval(doIt, REFRESH_TIME);
  34. })();

QingJ © 2025

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