Created
July 15, 2017 14:54
-
-
Save NickDeckerDevs/b686ff8dcb14ea2f7539ad82f6c81b27 to your computer and use it in GitHub Desktop.
Remove a stylesheet using scripting after it has been loaded
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 stylesheet_url_to_remove = 'https://static.hsstatic.net/content_shared_assets/static-1.4040/css/public_common.css'; | |
| $('head').find('link').each(function() { | |
| var current_stylesheet = $(this).attr('href'); | |
| if(current_stylesheet == stylesheet_url_to_remove) $(this).remove() | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment