(() => { const addShadowStyle = (selector, id, css) => { const el = document.querySelector(selector); if (el?.shadowRoot && !el.shadowRoot.querySelector(`#${id}`)) { const style = document.createElement("style"); style.id = id; style.textContent = css; el.shadowRoot.appendChild(style); } }; const injectStyles = () => { addShadowStyle( '[component-name="before-after"]', "custom-before-after-style", ` .title{font-size:19px!important} .comparison-wrapper,.has-shadow{box-shadow:none!important} .comparison-wrapper{border-radius:8px!important} .label{ top:1rem!important; bottom:auto!important; padding:2px 10px!important; border-radius:2px!important; font-size:15px!important; }` ); addShadowStyle( '[component-name="video-scroll-cards"]', "custom-video-style", ` .section-title{ font-size:19px!important; text-align:center!important; } .video-card{ aspect-ratio:9/15!important; border-radius:5px!important; flex:0 0 120px!important; }` ); }; const insertTamaraWidget = () => { const target = document.querySelector('.index .s-product-card-entry[id="1428106672"]'); if (!target || document.querySelector(".newwidjet")) return; target.insertAdjacentHTML("afterend", `
68 ر.س
لكل دفعة
أو قسم فاتورتك بقيمة 68 ر.س على 4 دفعات بدون رسوم تأخير، متوافقة مع الشريعة الإسلامية
`); }; injectStyles(); insertTamaraWidget(); new MutationObserver(() => { injectStyles(); insertTamaraWidget(); }).observe(document.body, { childList: true, subtree: true }); const header = document.querySelector("header.store-header .inner.bg-inherit .flex.items-stretch"); if (header) { header.insertAdjacentHTML("afterend", ` `); } window.addEventListener("load", () => { document.querySelector(".copyright-text p")?.insertAdjacentHTML( "afterend", `
:designed by ddandesign
` ); }); })();