Skip to content

Instantly share code, notes, and snippets.

@Antonio-Laguna
Created September 3, 2020 10:07
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 Antonio-Laguna/b83382a44a838e212f6b9bd53e600ec9 to your computer and use it in GitHub Desktop.
Save Antonio-Laguna/b83382a44a838e212f6b9bd53e600ec9 to your computer and use it in GitHub Desktop.
javascript:(function(d){var w=d.documentElement.offsetWidth,t=d.createTreeWalker(d.body,NodeFilter.SHOW_ELEMENT),b;while(t.nextNode()){b=t.currentNode.getBoundingClientRect();if(b.right>w||b.left<0){t.currentNode.style.setProperty('outline','1px dotted red','important');console.log(t.currentNode);}};}(document));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment