JSFiddle - React, Tailwind, and code Playground
by peterbenoit
HTML
was disable imported css...
JavaScript
$(function() {
var sheets = document.styleSheets;
var sheetIndex = sheets.length;
while (sheetIndex--) {
if (sheets[sheetIndex].cssRules || sheets[sheetIndex].rules) {
thisSheetRules = (sheets[sheetIndex].cssRules) ? sheets[sheetIndex].cssRules : sheets[sheetIndex].rules;
var ruleIndex = thisSheetRules.length;
while (ruleIndex--) {
if (thisSheetRules[ruleIndex].style && thisSheetRules[ruleIndex].style.cssText) {
var text = thisSheetRules[ruleIndex].style.cssText;
if (text.toLowerCase().indexOf('url') != -1) {
//console.log(text);
}
} else if (thisSheetRules[ruleIndex].styleSheet) {
//console.log(thisSheetRules[ruleIndex].styleSheet);
if (thisSheetRules[ruleIndex].styleSheet.href.indexOf("print.css") > 0) {
thisSheetRules[ruleIndex].styleSheet.disabled = true;
}
}
}
}
}
});