/* copy */ const Company = {title: "العراب",anchor: "https://alarrap.com/"} // function document.querySelectorAll(" .copyright-text").forEach(function (e) { if (e.textContent.replace(/\s+/g, ' ').trim().includes("صنع بإتقان") || e.textContent.replace(/\s+/g, ' ').trim().includes("الحقوق محفوظة") && e.tagName == "P") { e.innerHTML = `

صنع بإتقان | 2024 ${Company.title}

`; } }) /* cro */ // Create the image element // Wait for the DOM to fully load before running the script document.addEventListener('DOMContentLoaded', function() { // Create the image element var img = document.createElement('img'); img.setAttribute('class', 'lazy loaded'); img.setAttribute('width', '100%'); img.setAttribute('height', '100%'); img.setAttribute('src', 'https://johrh.com/assets/shop/img/payment-methods/payment-1.svg'); img.setAttribute('alt', 'google_pay'); img.setAttribute('loading', 'lazy'); img.setAttribute('data-ll-status', 'loaded'); // Create the anchor (link) element var link = document.createElement('a'); link.setAttribute('href', 'https://maroof.sa/businesses/details/90347'); link.setAttribute('target', '_blank'); // Append the image to the link link.appendChild(img); // Create the div element with class 's-payments-list-item' var listItem = document.createElement('div'); listItem.setAttribute('class', 's-payments-list-item'); // Append the link to the list item listItem.appendChild(link); // Function to insert the element and monitor it function insertPaymentIcon() { var paymentList = document.querySelector('.s-payments-list.hydrated'); if (paymentList) { if (!paymentList.contains(listItem)) { // Check if already exists paymentList.appendChild(listItem); } } else { console.log("Element with class 's-payments-list hydrated' not found."); } } // Insert immediately after DOM loads insertPaymentIcon(); // Set an interval to keep checking every 5 seconds setInterval(insertPaymentIcon, 5000); });