const checkFooterInterval = setInterval(() => { console.log("%c🔍 جاري الفحص وحقن سيكشن الآراء الجديد بالنجوم...", "color: #bada55; font-weight: bold;"); const footer = document.querySelector('body footer.store-footer'); if (footer) { const existingSection = document.querySelector('section.s-block.s-block--bundle-trust-testimonials'); if (!existingSection) { const newSection = document.createElement('section'); newSection.className = 's-block s-block--bundle-trust-testimonials'; newSection.innerHTML = `

زانه الشهري

★★★★★

ماجده حُجّا

★★★★★

Arwa Suleman

★★★★★

رغد المطلق

★★★★★

مليكة الماس

★★★★★
`; footer.parentNode.insertBefore(newSection, footer); console.log("%c🎉 تم حقن سيكشن الآراء الجديد بنجاح مع النجوم الخمسة!", "color: #00ffff; font-weight: bold;"); } clearInterval(checkFooterInterval); } }, 1000); /******************************************/ /******************************************/ /******************************************/ (function () { // 1. قائمة الأرقام التعريفية الثابتة للمنتجات المستهدفة const targetProductIds = [ "p39516081", "p1049019214", "p1824105549", "p316441932", "p1089889859" ]; const currentUrl = window.location.href; const isTargetPage = targetProductIds.some(id => currentUrl.includes(id)); if (!isTargetPage) return; // 2. تحديث بيانات التقييمات بناءً على طلبك الجديد const reviewsData = [ { name: "لولوه.. ام عثمان اليوسفي", date: "30/6/2024", stars: 5, verified: true, comment: "القدور ممتازة وثقيله وصحيه جدا وهي من الالمنيوا الممتاز 18/10 جزاكم الله خير الجزآء وانا طلبت ثلاثه أطقم انصح كل مطبخ يكون فيه هذا الطقم والله ماراح تندمون اطلبوه 🌹🌹🙏👍👌" }, { name: "مريم بنت فهد التميمي", date: "9/7/2024", stars: 5, verified: true, comment: "طلبي -لله الحمد- وصلني في مدة قصيرة طقم القدور يخدم كافة استخداماتي وااحتياجاتي أفكر جدّيًا باعتماد الطقم هدايا للعرسان والصديقات ✔️" }, { name: "ام فهد القثامي", date: "3/10/2024", stars: 5, verified: true, comment: "توصيل سريع تغليف ممتاز القدور ممتازه تركيه 10/18 ثقيله واضح الجوده ممتازه وراح اعتمدكم للطلب شكرا" }, { name: "Fatima Hadaidi", date: "22/12/2024", stars: 5, verified: true, comment: "سعيدة جدا بنجاح أول تجربة وتعامل مع المتجر ، مصداقية عالية وجودة المنتج ممتازة جدا ومطابق للمعايير المطلوبة ومطابق للصورة في المتجر ، حقا شكرا لكم على المصداقية والسرعة والجودة" }, { name: "Rowah Mirza", date: "14/4/2025", stars: 5, verified: true, comment: "سهولة في تصفح المتجر و معلومات المنتجات واضحة و كافية و تيسير طرق الدفع و الاجمل هو التوصيل الاسرع و الاصدق على الاطلاق" }, { name: "عائشة الشهري", date: "1/6/2025", stars: 5, verified: true, comment: "القدور تجنن مرررره روعة وثقيلة اتمنى تتوفر ملاعق بأنواعها وتكون ستل ستيل وماراح يكون آخر تعامل معاكم وراح أوصي الكل ياخذ من عندكم" }, { name: "ام فيصل حامد", date: "10/9/2025", stars: 5, verified: true, comment: "صراحه قدور جداً ممتازه وجودة عاليه وتوفقت فيهم الحمدلله مره فرحت فيهم وعلى طلبي بالضبط الف شكر لكم" }, { name: "عميل الرياض الحمراء", date: "1/12/2025", stars: 5, verified: true, comment: "المنتج مثل الاعلان بالضبط بصفتي اطبخ واعرف انواع القدور بصراحه رائع زياده والخدمه ممتازه وصول الطلب قبل الوقت المحدد لي" } ]; // 3. دالة بناء عنصر التقييم الـ HTML function generateReviewHTML(review) { let starsHTML = '★'.repeat(review.stars) + '☆'.repeat(5 - review.stars); let commentHTML = review.comment ? `

${review.comment}

` : ''; let replyHTML = ''; if (review.reply) { replyHTML = `
↩️ ${review.reply.sender} ${review.reply.date}

${review.reply.text}

`; } return `
${review.name} ${review.verified ? `✔ قام بالشراء . تم التقييم` : ''}
${starsHTML}
${review.date}
${commentHTML} ${replyHTML}
`; } // 4. دالة الحقن الذكي function injectReviews() { const activeTab = document.querySelector('.accordion.tab--comments.active'); if (activeTab) { const targetContainer = activeTab.nextElementSibling; if (targetContainer && targetContainer.classList.contains('panel')) { if (targetContainer.querySelector('.custom-reviews-wrapper')) return; const wrapper = document.createElement('div'); wrapper.className = 'custom-reviews-wrapper'; wrapper.style.cssText = 'width: 100%; padding: 10px 0;'; // تصميم لوحة إحصائيات التقييم الكلي (100% نجوم كاملة لـ 28 تقييم) let statsHTML = `
5
★★★★★
بناءً على 28 تقييم
${[5, 4, 3, 2, 1].map(star => { let pct = star === 5 ? '100%' : '0%'; let barColor = star === 5 ? '#f3a83b' : '#edf2f7'; return `
${star}
${pct}
`; }).join('')}
100%
أوصوا بالمنتج
`; let finalHTML = '

تقييمات العملاء

'; finalHTML += statsHTML; reviewsData.forEach(review => { finalHTML += generateReviewHTML(review); }); wrapper.innerHTML = finalHTML; targetContainer.innerHTML = ''; targetContainer.appendChild(wrapper); } } } const observer = new MutationObserver((mutations) => { injectReviews(); }); observer.observe(document.body, { attributes: true, childList: true, subtree: true, attributeFilter: ['class'] }); window.addEventListener('DOMContentLoaded', injectReviews); })(); /******************************************/ /******************************************/ /******************************************/ (function () { // 1. تحديد رابط صفحة التصنيف المستهدفة const targetCategoryUrl = "https://getroyalkitchen.com/steelcollection/c694241346"; const currentUrl = window.location.href; const isTargetCategory = currentUrl.includes(decodeURIComponent(targetCategoryUrl)) || currentUrl.includes(targetCategoryUrl); if (!isTargetCategory) return; console.log("🔍 ...جاري الفحص وحقن سيكشن الآراء الجديد بالنجوم"); // 2. دالة حقن النجوم والتقييم أسفل عنوان المنتج function injectCardRatings() { // استهداف روابط أسماء المنتجات داخل كروت سلة const productTitles = document.querySelectorAll('.s-product-card-content-title a'); if (productTitles.length === 0) return; // إذا لم يتم تحميل الكروت بعد، انتظر الدورة القادمة let injectedCount = 0; productTitles.forEach(titleLink => { const cardContent = titleLink.parentElement; if (!cardContent || cardContent.querySelector('.custom-card-rating')) return; // إنشاء عنصر التقييم (نجمة ورقم 5) const ratingDiv = document.createElement('div'); ratingDiv.className = 'custom-card-rating'; ratingDiv.style.cssText = ` display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin-top: 6px; color: #a0aec0; font-size: 13px; font-family: sans-serif; direction: rtl; text-align: right; `; ratingDiv.innerHTML = ` 5 `; // حقن التقييم مباشرة بعد رابط عنوان المنتج titleLink.insertAdjacentElement('afterend', ratingDiv); injectedCount++; }); if (injectedCount > 0) { console.log(`🎉 تم حقن التقييم بنجاح لـ (${injectedCount}) منتج جديد مع النجوم الخمسة!`); } } // 3. الفحص الدوري الآمن والمستمر لضمان الحقن الفوري فور ظهور أي كارت في سلة // هذا الفحص يحل مشكلة الـ Disabling InfiniteScroll تماماً const intervalId = setInterval(injectCardRatings, 300); // إلغاء الفحص الدوري مؤقتاً بعد 10 ثوانٍ إذا استقرت الصفحة تماماً للحفاظ على الأداء setTimeout(() => { clearInterval(intervalId); // نكتفي بعد ذلك بمراقبة أي كروت تنزل عبر التمرير العادي const observer = new MutationObserver(() => injectCardRatings()); observer.observe(document.body, { childList: true, subtree: true }); }, 10000); // تشغيل احتياطي أولي injectCardRatings(); })();