Files
manga-mass-downloader/popup.html
renato97 829996b41e Initial commit: Manga Mass Downloader Chrome Extension
 Features:
- Multi-selection checkboxes on manga listings
- Batch download selected manga or all manga from page
- Optimized parallel downloading (20ms delays, 5 concurrent)
- Visual progress tracking
- Popup UI for easy control
- Fixed duplicate checkbox issue with deduplication logic

📁 Files:
- manifest.json: Extension configuration
- content.js: Checkbox injection & manga detection
- background.js: Optimized download engine
- popup.html/js: User interface
- README.md: Complete documentation
2025-11-04 04:25:25 +00:00

178 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body {
width: 320px;
min-height: 200px;
margin: 0;
padding: 20px;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
font-size: 18px;
font-weight: bold;
}
.stats {
background: rgba(255, 255, 255, 0.2);
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
text-align: center;
}
.stats-number {
font-size: 36px;
font-weight: bold;
margin: 5px 0;
}
.stats-label {
font-size: 12px;
opacity: 0.9;
}
.button {
width: 100%;
padding: 12px;
margin: 8px 0;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.button:active {
transform: translateY(1px);
}
.button-primary {
background: #4CAF50;
color: white;
}
.button-primary:hover {
background: #45a049;
box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}
.button-secondary {
background: #2196F3;
color: white;
}
.button-secondary:hover {
background: #0b7dda;
box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}
.button-warning {
background: #ff9800;
color: white;
}
.button-warning:hover {
background: #e68900;
box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}
.button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.info {
font-size: 11px;
text-align: center;
margin-top: 15px;
opacity: 0.8;
}
.progress {
display: none;
margin-top: 15px;
}
.progress-bar {
width: 100%;
height: 6px;
background: rgba(255,255,255,0.3);
border-radius: 3px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: white;
width: 0%;
transition: width 0.3s ease;
}
.status {
font-size: 12px;
margin-top: 8px;
text-align: center;
}
.success {
color: #4CAF50;
font-weight: bold;
}
.error {
color: #f44336;
font-weight: bold;
}
</style>
</head>
<body>
<div class="header">
<h1>📦 Manga Mass Downloader</h1>
</div>
<div class="stats">
<div class="stats-number" id="selectedCount">0</div>
<div class="stats-label">Manga Seleccionados</div>
</div>
<button class="button button-primary" id="downloadSelected">
⬇️ Descargar Seleccionados
</button>
<button class="button button-secondary" id="downloadAll">
📚 Descargar TODOS de la Página
</button>
<button class="button button-warning" id="clearSelection">
🗑️ Limpiar Selección
</button>
<div class="progress" id="progress">
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<div class="status" id="status"></div>
</div>
<div class="info">
💡 Selecciona los manga en la página y usa este popup para descargarlos
</div>
<script src="popup.js"></script>
</body>
</html>