Skip to content

Instantly share code, notes, and snippets.

@stephenplusplus
Last active August 29, 2015 14:00
Show Gist options
  • Save stephenplusplus/11045843 to your computer and use it in GitHub Desktop.
Save stephenplusplus/11045843 to your computer and use it in GitHub Desktop.
remove inline styles from mean developers.
(function () {
[].slice.call(document.querySelectorAll('[style]')).
forEach(function (el) {
console.info(el.tagName.toLowerCase() + '.' + el.className);
console.log(el.getAttribute('style').split(/;\s*/g).join('\n'));
el.removeAttribute('style');
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment