From 9068abfe9c50a7a9aba928fd33b131c5fdac1eb2 Mon Sep 17 00:00:00 2001 From: renato97 Date: Tue, 4 Nov 2025 05:06:43 +0000 Subject: [PATCH] Fix floating progress popup display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎨 Popup improvements: - Changed to inline styles (no cssText) for better compatibility - Set display: block by default (always visible) - Increased z-index to 999999 (maximum priority) - Better styling with backdrop filter - Added comprehensive console logging for debugging - Popup now shows immediately when created Debugging: - Added logs for popup creation, DOM insertion, and element access - Better error tracking for popup visibility issues --- content.js | 52 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/content.js b/content.js index 170ea3a..4269cc0 100644 --- a/content.js +++ b/content.js @@ -11,46 +11,54 @@ // Crear popup flotante de progreso function createFloatingProgressPopup() { + console.log('🎨 Creando popup de progreso...'); + // Remover popup anterior si existe const existingPopup = document.getElementById('mass-downloader-progress-popup'); if (existingPopup) { + console.log('🗑️ Removiendo popup anterior'); existingPopup.remove(); } const popup = document.createElement('div'); popup.id = 'mass-downloader-progress-popup'; - popup.style.cssText = ` - position: fixed; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 400px; - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - color: white; - padding: 25px; - border-radius: 12px; - box-shadow: 0 10px 40px rgba(0,0,0,0.5); - z-index: 10001; - font-family: Arial, sans-serif; - display: none; - `; + + // Estilos inline para máxima compatibilidad + popup.style.position = 'fixed'; + popup.style.top = '50%'; + popup.style.left = '50%'; + popup.style.transform = 'translate(-50%, -50%)'; + popup.style.width = '450px'; + popup.style.background = '#667eea'; + popup.style.backgroundImage = 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)'; + popup.style.color = 'white'; + popup.style.padding = '30px'; + popup.style.borderRadius = '15px'; + popup.style.boxShadow = '0 10px 50px rgba(0,0,0,0.6)'; + popup.style.zIndex = '999999'; // ¡Muy alto! + popup.style.fontFamily = 'Arial, sans-serif'; + popup.style.display = 'block'; // Visible por defecto + popup.style.backdropFilter = 'blur(10px)'; popup.innerHTML = ` -
-

📦 Descargando Manga

-
Preparando descarga...
+
+

📦 Descargando Manga

+
Preparando...
-
-
+
+
-
+
0 / 0 0%
-
+
`; + console.log('✅ Popup creado, agregando al DOM...'); document.body.appendChild(popup); + console.log('✅ Popup agregado al DOM:', popup); + return popup; }