|
|
|
@ -3963,14 +3963,17 @@ else if (matchDomain('business-standard.com')) {
|
|
|
|
|
let json = JSON.parse(json_script.text);
|
|
|
|
|
if (json && json.props.pageProps.data.htmlContent) {
|
|
|
|
|
let json_text = json.props.pageProps.data.htmlContent;
|
|
|
|
|
let content = document.querySelector('div.storycontent');
|
|
|
|
|
let content = document.querySelector('div[class^="MainStory_storycontent__"');
|
|
|
|
|
if (json_text && content) {
|
|
|
|
|
content.innerHTML = '';
|
|
|
|
|
let intro = content.querySelectorAll('div:not([class]');
|
|
|
|
|
removeDOMElement(...intro);
|
|
|
|
|
let parser = new DOMParser();
|
|
|
|
|
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
|
|
|
|
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, dompurify_options) + '</div>', 'text/html');
|
|
|
|
|
let content_new = doc.querySelector('div');
|
|
|
|
|
content.firstChild.before(content_new);
|
|
|
|
|
window.setTimeout(function () {
|
|
|
|
|
content.appendChild(content_new);
|
|
|
|
|
}, 1000);
|
|
|
|
|
}
|
|
|
|
|
} else
|
|
|
|
|
refreshCurrentTab();
|
|
|
|
|