|
|
@@ -91,7 +91,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
async initialize() {
|
|
|
this.onprogress(new ProgressEvent(RESOURCES_INITIALIZING, { pageURL: this.options.url }));
|
|
|
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)) {
|
|
|
this.processor.insertNoscriptContents();
|
|
|
@@ -317,14 +316,6 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- enableDisabledNoscriptTags(noscriptTags) {
|
|
|
- noscriptTags.forEach(element => {
|
|
|
- const noscriptElement = this.options.doc.createElement("noscript");
|
|
|
- Array.from(element.childNodes).forEach(node => noscriptElement.appendChild(node));
|
|
|
- element.parentElement.replaceChild(noscriptElement, element);
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
insertNoscriptContents() {
|
|
|
const DOMParser = DOM.getParser();
|
|
|
if (DOMParser) {
|