|
|
@@ -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, "");
|