Open Bes79 opened 3 years ago
run javascript
var disableFileName = "aaa.css"; // css name
for(var i = 0; i < document.styleSheets.length; i++) {
var styleSheetPath = document.styleSheets[i].href;
var fileName = styleSheetPath.substring(styleSheetPath.lastIndexOf('/')+1, styleSheetPath.length);
if (fileName === disableFileName) {
document.styleSheets[i].disabled = true;
}
}
Hi! I want to block all requests for css files from link tag. Is any way to do it?