Skip to content

Instantly share code, notes, and snippets.

@gabskoro
Created March 7, 2016 09:42
Show Gist options
  • Save gabskoro/7bd1c33fcbc7224c6081 to your computer and use it in GitHub Desktop.
Save gabskoro/7bd1c33fcbc7224c6081 to your computer and use it in GitHub Desktop.
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(document.querySelectorAll('*'), function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment