document.addEventListener('DOMContentLoaded', function() { const checkMollieButton = setInterval(function() { // Modification ici : ajout d'échappement pour le sélecteur const iframe = document.querySelector('iframe[src*="mollie"]:not([src*="nubapp"])'); if (iframe) { try { const iframeDoc = iframe.contentDocument || iframe.contentWindow.document; // Modification ici : échappement du sélecteur const button = iframeDoc.querySelector('button:not(.btn-register), input[type="submit"]'); if (button) { // Styles de base button.style.cssText = [ 'background: #E31937 !important', 'color: white !important', 'padding: 15px 40px !important', 'font-size: 18px !important', 'border-radius: 5px !important', 'font-weight: bold !important', 'text-transform: uppercase !important', 'margin: 20px auto !important', 'display: block !important', 'max-width: 300px !important', 'border: none !important', 'cursor: pointer !important', 'transition: all 0.3s ease !important' ].join('; '); // Gestion du survol (modifié pour éviter les problèmes d'échappement) button.addEventListener('mouseover', function() { this.style.background = '#C0102D !important'; this.style.transform = 'translateY(-2px) !important'; }); button.addEventListener('mouseout', function() { this.style.background = '#E31937 !important'; this.style.transform = 'none !important'; }); clearInterval(checkMollieButton); } } catch(e) { console.error("Erreur de style Mollie:", e); } } }, 1000); });
Verified by MonsterInsights