|
@@ -838,8 +838,12 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
styleElement.textContent = ".sf-hidden{display:none!important;}";
|
|
styleElement.textContent = ".sf-hidden{display:none!important;}";
|
|
|
this.doc.head.appendChild(styleElement);
|
|
this.doc.head.appendChild(styleElement);
|
|
|
hiddenElements.forEach(element => {
|
|
hiddenElements.forEach(element => {
|
|
|
- if (element.style.display != "none") {
|
|
|
|
|
- element.classList.add("sf-hidden");
|
|
|
|
|
|
|
+ if (element.style.getPropertyValue("display") != "none") {
|
|
|
|
|
+ if (element.style.getPropertyPriority("display") == "important") {
|
|
|
|
|
+ element.style.setProperty("display", "none", "important");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ element.classList.add("sf-hidden");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|