const tryInject = setInterval(() => { const menuContainer = document.querySelector('.mm-ocd__content'); if (menuContainer && !document.querySelector('.mobile-menu-logo')) { // --- الشعار --- const logo = document.createElement("img"); logo.src = "https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/xAWPza/5AylCBATjSgdMnk2fmUtQxX3ZK6mqFbvCDdayekL.png"; logo.alt = "شعار"; logo.className = "mobile-menu-logo"; logo.style.cursor = "pointer"; logo.style.width = "140px"; logo.style.margin = "20px auto"; logo.style.display = "block"; logo.style.borderRadius = "12px"; logo.style.boxShadow = "0 4px 10px rgba(0, 0, 0, 0.1)"; logo.style.transition = "transform 0.3s ease"; logo.addEventListener("mouseover", () => { logo.style.transform = "scale(1.05)"; }); logo.addEventListener("mouseout", () => { logo.style.transform = "scale(1)"; }); logo.addEventListener("click", function () { window.location.href = "/"; }); // --- قسم التواصل الاجتماعي --- const socialWrapper = document.createElement("div"); socialWrapper.className = "social-wrapper"; const ul = document.createElement("ul"); ul.className = "s-social-list"; const socials = [ { href: "https://twitter.com/", svg: `` }, { href: "https://instagram.com/", svg: `` }, { href: "https://wa.me/966534598887", svg: `` } ]; socials.forEach(social => { const li = document.createElement("li"); li.className = "s-social-link"; li.innerHTML = `${social.svg}`; ul.appendChild(li); }); socialWrapper.appendChild(ul); // --- الإضافة للقائمة --- menuContainer.prepend(socialWrapper); menuContainer.prepend(logo); clearInterval(tryInject); } }, 500); const moveTaxInfo = setInterval(() => { const taxElement = document.querySelector('#app > div.app-inner.flex.flex-col.min-h-full > footer > div.store-footer__inner > div > div.lg\\:col-span-2.rtl\\:lg\\:pl-20.ltr\\:lg\\:pr-20 > div.flex.rtl\\:space-x-reverse.space-x-2.items-end'); const contactSocial = document.querySelector('.contact-social'); if (taxElement && contactSocial && !document.querySelector('.moved-tax')) { taxElement.classList.add('moved-tax'); // نحدد الأب ثم نضع الضريبة تحته بعد contact-social مباشرة const parent = contactSocial.parentNode; if (parent) { parent.insertBefore(taxElement, contactSocial.nextSibling); } clearInterval(moveTaxInfo); } }, 500);