Skip to content

Instantly share code, notes, and snippets.

@ItGumby
Created April 18, 2018 22:36
Show Gist options
  • Save ItGumby/d1e022aa2ac5ea754177a0f56299863a to your computer and use it in GitHub Desktop.
Save ItGumby/d1e022aa2ac5ea754177a0f56299863a 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