Created
May 11, 2017 09:42
-
-
Save Rudis1261/51411f46b0526f81c3ff86d51b243ae3 to your computer and use it in GitHub Desktop.
Remove Page's CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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