Skip to content

Instantly share code, notes, and snippets.

@artemsites
Last active April 3, 2024 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artemsites/7c905368eec418c51ea98356e6af76d8 to your computer and use it in GitHub Desktop.
Save artemsites/7c905368eec418c51ea98356e6af76d8 to your computer and use it in GitHub Desktop.
  let tags = ['TITLE', 'META', 'SCRIPT', 'HEAD', 'LINK', 'STYLE']
  document.querySelectorAll('*').forEach(function(node) {
    if (!tags.includes(node.tagName)) {
      if (window.getComputedStyle(node).display === 'none' || window.getComputedStyle(node).visibility === 'hidden') {
          console.log(node)
          node.style.display = 'block';
          node.style.visibility = 'visible';
          node.style.border = '3px solid red';
          node.style.position = 'fixed';
          node.style.left = '0';
          node.style.top = '0';
          node.style.zIndex = '99999';
      }
    }
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment