const allowedDomains = ["arwmed.com", "salla.sa"]; const currentDomain = window.location.hostname; if (allowedDomains.includes(currentDomain)) { document.body.classList.remove("no-js"); document.body.classList.add("show-content"); } else { document.body.classList.add("hide-content"); } (function() { function tryLoadMore() { try { // البحث عن زر التحميل - تحقق من المحدد (selector) الخاص بك const loadMoreButton = document.querySelector('div.s-infinite-scroll-wrapper > button'); if (loadMoreButton) { console.log('تم العثور على زر التحميل'); // محاولة الضغط loadMoreButton.click(); console.log('تم الضغط على الزر'); } else { console.log('لم يتم العثور على زر التحميل'); } } catch (error) { console.error('حدث خطأ أثناء محاولة تحميل المزيد:', error); } } // محاولة التحميل عند تحميل الصفحة if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', tryLoadMore); } else { tryLoadMore(); } // مراقبة مستمرة كل 3 ثوانٍ setInterval(tryLoadMore, 3000); })(); // إضافة زر البحث - تحقق من المحدد (selector) الخاص بك const headerActions = document.querySelector("body > div.app-inner.flex.flex-col.min-h-full > header > div.main-nav-container.shadow-default.bg-white > div > div > div .flex.items-center.justify-end"); if (headerActions) { headerActions.innerHTML += ` `; } else { console.log('لم يتم العثور على حاوية أزرار الهيدر لإضافة زر البحث.'); } const addIcons = () => { var script = document.createElement("script"); script.src = "https://cdn.lordicon.com/bhenfmcm.js"; document.head.appendChild(script); document.querySelectorAll(".testimonials-slider div .sicon-quote-open").forEach((n) => { n.innerHTML = ` ` }); const iconsRaval = document.querySelectorAll(".s-block--features__item .feature-icon"); if (iconsRaval.length > 0) { if (iconsRaval[0]) { iconsRaval[0].innerHTML = ` `; } if (iconsRaval[1]) { iconsRaval[1].innerHTML = ` `; } if (iconsRaval[2]) { iconsRaval[2].innerHTML = ` `; } if (iconsRaval[3]) { iconsRaval[3].innerHTML = ` `; } } } window.addEventListener('load', () => { addIcons(); }); // إضافة قسم للمميزات - تحقق من المحدد (selector) الخاص بك const featuresContainer = document.querySelector("section.s-block.s-block--features.container div"); if (featuresContainer) { featuresContainer.innerHTML += `

أسعارنا هي الأفضل

أسعار مميزة وخصومات على مدار السنة

`; } else { console.log('لم يتم العثور على حاوية قسم المميزات.'); }