1
0
Эх сурвалжийг харах

remove more hidden frames

Gildas 7 жил өмнө
parent
commit
51f0c65329

+ 1 - 1
lib/single-file/doc-helper.js

@@ -77,7 +77,7 @@ this.docHelper = this.docHelper || (() => {
 					markBackdropBackground(doc, win, markerRemovedContent);
 					doc.querySelectorAll("iframe").forEach(element => {
 						const boundingRect = element.getBoundingClientRect();
-						if (!boundingRect.width && !boundingRect.height) {
+						if (element.hidden || element.style.display == "none" || boundingRect.width <= 1 && boundingRect.height <= 1) {
 							element.setAttribute(markerRemovedContent, "");
 						}
 					});