const categories = [ { imageUrl: 'https://a.top4top.io/p_3715wqyu71.png', anchorUrl: 'https://seoul-lighting.com/الأفياش-الحديثة-والأفياش-الأرضية/c33235200' }, { imageUrl: 'https://b.top4top.io/p_3715uxi8y2.png', anchorUrl: 'https://seoul-lighting.com/الثريات/c1405108225' }, { imageUrl: 'https://c.top4top.io/p_3715wkpxd3.png', anchorUrl: 'https://seoul-lighting.com/تراك-لايت/c52985064' }, { imageUrl: 'https://b.top4top.io/p_3715qu33d6.png', anchorUrl: 'https://seoul-lighting.com/ثريات-كريستال-تفصيل/c2139852291' }, { imageUrl: 'https://a.top4top.io/p_3715rag6s5.png', anchorUrl: 'https://seoul-lighting.com/المعلقات/c1230023948' }, { imageUrl: 'https://l.top4top.io/p_3715hf76f4.png', anchorUrl: 'https://seoul-lighting.com/الجداريات-الداخلية/c457034765' }, { imageUrl: 'https://k.top4top.io/p_3715pna383.png', anchorUrl: 'https://seoul-lighting.com/الجداريات-الخارجية/c1189546511' }, { imageUrl: 'https://j.top4top.io/p_37157rren2.png', anchorUrl: 'https://seoul-lighting.com/اللينر-الإنارة-الخطية/c281815304' }, { imageUrl: 'https://i.top4top.io/p_3715lx2zq1.png', anchorUrl: 'https://seoul-lighting.com/الكشافات/c1655261193' }, { imageUrl: 'https://h.top4top.io/p_3715y0sj52.png', anchorUrl: 'https://seoul-lighting.com/الجلاسيات-وإنارة-الغرس/c1014388490' }, { imageUrl: 'https://g.top4top.io/p_3715jgyss1.png', anchorUrl: 'https://seoul-lighting.com/مراوح-وشفاطات/c240350731' }, ] function addCategory(selector, categories) { const categoryList = document.querySelector(selector); if (!categoryList) return; categories.forEach(category => { const link = document.createElement('a'); link.className = 'banner-entry square-photos'; link.href = category.anchorUrl; link.innerHTML = `category image`; categoryList.appendChild(link); }); } (() => { const selector = '#main-content section:nth-of-type(3) .grid'; addCategory(selector, categories); })(); (() => { const icon = ` `; const number = '0554776455'; const body = document.querySelector(".app-inner"); const container = document.createElement("div"); container.className = 'whatsapp-container'; container.innerHTML = ` ${icon} ` Object.assign(container.style, { position: 'fixed', bottom: '3rem', right: '1.5rem', width: '3.6rem', "z-index": '100', }) body?.appendChild(container); })(); document.addEventListener("DOMContentLoaded", function () { function addTaxLabel() { // عدلي السيليكتور ده لو لزم حسب ثيم سلة عندك const priceElement = document.querySelector(".product-price, .price, [class*='price']"); if (!priceElement) return; // منع التكرار if (priceElement.parentElement.querySelector(".tax-label")) return; const label = document.createElement("div"); label.className = "tax-label"; label.innerText = "السعر شامل الضريبة"; // ستايل بسيط label.style.fontSize = "12px"; label.style.color = "#777"; label.style.marginTop = "4px"; priceElement.insertAdjacentElement("afterend", label); } // تشغيل أول مرة addTaxLabel(); // عشان لو الصفحة اتغيرت ديناميك (سلة/سبارك) const observer = new MutationObserver(() => { addTaxLabel(); }); observer.observe(document.body, { childList: true, subtree: true }); });