// SCRIPT ANTI-ÉQUIPE - CHARGÉ EN PREMIER (function() { 'use strict'; // DÉTECTION PAGE ÉQUIPE var isTeamPage = window.location.pathname === '/team' || window.location.pathname === '/team/' || window.location.pathname.startsWith('/team/') || window.location.href.includes('/team'); if (isTeamPage) { console.log('🚫 BLOQUEUR ÉQUIPE ACTIF - Page équipe détectée'); // Bloquer les scripts qui interfèrent avec la page équipe window.__blockTeamPages = true; // Permettre quand même les scripts essentiels pour la navigation var originalAppendChild = Element.prototype.appendChild; Element.prototype.appendChild = function(child) { if (child.tagName === 'SCRIPT' && child.src) { // Bloquer seulement strategie-script.js qui cause les problèmes if (child.src.includes('strategie-script.js')) { console.log('🚫 Script strategie-script.js BLOQUÉ sur page équipe'); return child; // Ne pas l'ajouter } // Permettre les autres scripts (navigation, etc.) } return originalAppendChild.call(this, child); }; console.log('✅ Navigation et scripts essentiels autorisés sur page équipe'); return; } console.log('✅ Page normale détectée - tous scripts autorisés'); })();