Skip to content

Instantly share code, notes, and snippets.

@stinoga
Created March 16, 2018 17:35
Show Gist options
  • Save stinoga/b2cbd757bae4125405eb0bf9363d455c to your computer and use it in GitHub Desktop.
Save stinoga/b2cbd757bae4125405eb0bf9363d455c to your computer and use it in GitHub Desktop.
Remove all stylesheets for Accessibility checking without CSS
(() => {
Array.from(document.querySelectorAll('link, style')).forEach(el => {
el.parentNode.removeChild(el);
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment