Created
May 2, 2017 19:50
-
-
Save degt/2b2597d9bf9876e9c354fc7c95fdbfda to your computer and use it in GitHub Desktop.
Remove Stylesheet with name 'base*'
This file contains 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
//Remove Base css | |
$('link').each(function(index, ele){ | |
var href = $(ele).attr('href'); | |
var regex = /base/; | |
if(regex.test(href)){ | |
$(ele).remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment