|
|
@@ -125,7 +125,7 @@ this.singlefile.top = this.singlefile.top || (() => {
|
|
|
function selectRemovedElements(REMOVED_CONTENT_ATTRIBUTE_NAME) {
|
|
|
document.querySelectorAll("html > body *:not(style):not(script):not(link):not(frame):not(iframe):not(object)").forEach(element => {
|
|
|
const style = getComputedStyle(element);
|
|
|
- if (element instanceof HTMLElement && !element.querySelector("iframe, frame, object[type=\"text/html\"][data]") && (element.hidden || style.display == "none" || ((style.opacity === 0 || style.visibility == "hidden") && !element.clientWidth && !element.clientHeight))) {
|
|
|
+ if (element instanceof HTMLElement && (element.hidden || style.display == "none" || ((style.opacity === 0 || style.visibility == "hidden") && !element.clientWidth && !element.clientHeight)) && !element.querySelector("iframe, frame, object[type=\"text/html\"][data]")) {
|
|
|
element.setAttribute(REMOVED_CONTENT_ATTRIBUTE_NAME, "");
|
|
|
}
|
|
|
});
|