Skip to content

Instantly share code, notes, and snippets.

@vmesel
Created January 6, 2020 02:53
Show Gist options
  • Save vmesel/359a5ad134fbfe607c1cbfcb371f8ca9 to your computer and use it in GitHub Desktop.
Save vmesel/359a5ad134fbfe607c1cbfcb371f8ca9 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