Skip to content

Instantly share code, notes, and snippets.

@Rudis1261
Created May 11, 2017 09:42
Show Gist options
  • Save Rudis1261/51411f46b0526f81c3ff86d51b243ae3 to your computer and use it in GitHub Desktop.
Save Rudis1261/51411f46b0526f81c3ff86d51b243ae3 to your computer and use it in GitHub Desktop.
Remove Page's CSS
var styles = document.querySelectorAll('style');
for(var i = 0; i < styles.length; i++) {
styles[i].remove();
}
var linkedStyles = document.querySelectorAll('link[rel="stylesheet"]');
for(var i = 0; i < linkedStyles.length; i++) {
linkedStyles[i].remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment