|
|
@@ -87,6 +87,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
|
|
|
async initialize() {
|
|
|
this.onprogress(new ProgressEvent(RESOURCES_INITIALIZING, { pageURL: this.options.url }));
|
|
|
+ this.processor.removeInfoToolbar();
|
|
|
if (!this.options.jsEnabled || (this.options.saveRawPage && this.options.removeScripts)) {
|
|
|
this.processor.insertNoscriptContents();
|
|
|
}
|
|
|
@@ -299,6 +300,10 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
this.doc.querySelectorAll("base").forEach(element => element.remove());
|
|
|
}
|
|
|
|
|
|
+ removeInfoToolbar() {
|
|
|
+ this.doc.querySelectorAll("singlefile-infobar").forEach(element => element.remove());
|
|
|
+ }
|
|
|
+
|
|
|
removeScripts() {
|
|
|
this.doc.querySelectorAll("script:not([type=\"application/ld+json\"])").forEach(element => element.remove());
|
|
|
}
|