Quellcode durchsuchen

prevent removing frames

Gildas vor 7 Jahren
Ursprung
Commit
529013fd9a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      extension/core/content/content.js

+ 1 - 1
extension/core/content/content.js

@@ -123,7 +123,7 @@ this.singlefile.top = this.singlefile.top || (() => {
 	}
 
 	function selectRemovedElements(REMOVED_CONTENT_ATTRIBUTE_NAME) {
-		document.querySelectorAll("html > body *:not(style):not(script):not(link)").forEach(element => {
+		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.hidden || style.display == "none" || ((style.opacity === 0 || style.visibility == "hidden") && !element.clientWidth && !element.clientHeight))) {
 				element.setAttribute(REMOVED_CONTENT_ATTRIBUTE_NAME, "");