Content 53

Published
March 16, 2024
Category

How it works?

Lorem ipsum dolor sit amet consectetur. Nunc neque tincidunt urna enim blandit vitae.

01

Awesome step

Lorem ipsum dolor sit amet consectetur. Quis in vitae fringilla aliquet viverra eget eu. Tincidunt feugiat felis augue scelerisque porttitor amet dictum natoque.

02

Awesome step

Lorem ipsum dolor sit amet consectetur. Quis in vitae fringilla aliquet viverra eget eu. Tincidunt feugiat felis augue scelerisque porttitor amet dictum natoque.

03

Awesome step

Lorem ipsum dolor sit amet consectetur. Quis in vitae fringilla aliquet viverra eget eu. Tincidunt feugiat felis augue scelerisque porttitor amet dictum natoque.

04

Awesome step

Lorem ipsum dolor sit amet consectetur. Quis in vitae fringilla aliquet viverra eget eu. Tincidunt feugiat felis augue scelerisque porttitor amet dictum natoque.

Add to collection

You might also like

Headspin Logo
1.2.3
Built with
Breakdance
and
Headspinui
@ 2024 HeadspinUI. All rights reserved.
'; //document.body.appendChild(iframe); var html = document.querySelector("html").outerHTML; var body = target.outerHTML; target.replaceWith(iframe); iframe.contentWindow.document.open(); iframe.contentWindow.document.write(html); iframe.contentWindow.document.close(); //document.querySelector("iframe").contentWindow.document.querySelector("body").innerHTML = body; iframe.onload = (event) => { iframeCleaner(); }; var doc = iframe.contentDocument || iframe.contentWindow; var _timer = setInterval(function() { console.log("timer-load"); if (doc.readyState == 'complete') { clearInterval(_timer); iframeCleaner(); } }, 100); } function iframeCleaner(){ var doc = document.querySelector("iframe").contentWindow.document; var sections = doc.querySelectorAll("body > *"); sections.forEach(section=>{ if(section.tagName != "MAIN") section.remove(); }); if(doc.querySelector(".mbfp-btn")) doc.querySelector(".mbfp-btn").remove(); } /**/ const targetNode = document.querySelector("html"); // Options for the observer (which mutations to observe) const config = { attributes: true, childList: false, subtree: false }; // Callback function to execute when mutations are observed const callback = (mutationList, observer) => { for (const mutation of mutationList) { if (mutation.type === "childList") { console.log("A child node has been added or removed."); } else if (mutation.type === "attributes") { var att = targetNode.getAttribute("data-hsx"); var iframe = document.querySelector("iframe"); if(iframe) { iframe.contentWindow.document.querySelector("html").setAttribute("data-hsx",att) } } } }; // Create an observer instance linked to the callback function const observer = new MutationObserver(callback); // Start observing the target node for configured mutations observer.observe(targetNode, config); })