|
|
@@ -93,7 +93,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
|
|
|
async initialize() {
|
|
|
this.onprogress(new ProgressEvent(RESOURCES_INITIALIZING, { pageURL: this.options.url }));
|
|
|
- this.processor.removeInfoToolbar();
|
|
|
+ this.processor.removeUIElements();
|
|
|
this.processor.enableDisabledNoscriptTags(this.processor.doc.head.querySelectorAll("disabled-noscript"));
|
|
|
this.processor.replaceEmptyStyles();
|
|
|
if (!this.options.jsEnabled || (this.options.saveRawPage && this.options.removeScripts)) {
|
|
|
@@ -384,8 +384,8 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- removeInfoToolbar() {
|
|
|
- this.doc.querySelectorAll("singlefile-infobar").forEach(element => element.remove());
|
|
|
+ removeUIElements() {
|
|
|
+ this.doc.querySelectorAll("singlefile-infobar, singlefile-mask").forEach(element => element.remove());
|
|
|
}
|
|
|
|
|
|
removeScripts() {
|