Skip to content

Instantly share code, notes, and snippets.

@degt degt/remove-css.js
Created May 2, 2017

Embed
What would you like to do?
Remove Stylesheet with name 'base*'
//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
You can’t perform that action at this time.