buscador-hls / popup.html
codebydante's picture
Subida inicial de buscador hls en la raíz del repositorio
bea703c verified
Raw History Blame Contribute Delete
8.67 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Buscador HLS Max</title>
<!-- Google Fonts: Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="app-container">
<!-- Header -->
<header class="header">
<div class="brand">
<div class="logo-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polygon points="23 7 16 12 23 17 23 7"></polygon>
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
</svg>
</div>
<div class="brand-text">
<h1>Buscador HLS <span>Max</span></h1>
<p>Extractor de enlaces m3u8 en alta fidelidad</p>
</div>
</div>
<button id="btn-expand" class="btn-icon" title="Abrir en pestaña completa">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
<polyline points="15 3 21 3 21 9"></polyline>
<line x1="10" y1="14" x2="21" y2="3"></line>
</svg>
</button>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Input Panel -->
<section class="panel input-panel">
<div class="panel-header">
<span class="step-num">1</span>
<h2>Ingresar enlaces de video</h2>
</div>
<div class="textarea-wrapper">
<textarea id="urls-input" placeholder="Pega aquí tus enlaces de video de XVideos o Pornhub (uno por línea)...&#10;Ejemplos:&#10;https://es.pornhub.com/view_video.php?viewkey=ph5fc66dd71d040&#10;https://www.xvideos.es/video..."></textarea>
<button id="btn-clear-input" class="btn-clear" title="Limpiar lista">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
Limpiar
</button>
</div>
<div class="control-row">
<div class="concurrency-selector">
<label for="concurrency-select">Hilos simultáneos:</label>
<select id="concurrency-select">
<option value="1">1 (Seguro)</option>
<option value="2">2 (Recomendado)</option>
<option value="3" selected>3 (Rápido)</option>
<option value="5">5 (Turbo)</option>
</select>
</div>
<button id="btn-extract" class="btn-primary">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="23 4 23 10 17 10"></polyline>
<polyline points="1 20 1 14 7 14"></polyline>
<path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>
</svg>
Extraer Enlaces HLS
</button>
</div>
</section>
<!-- Progress Section -->
<section id="progress-section" class="progress-section hidden">
<div class="progress-info">
<span id="progress-status">Procesando videos...</span>
<span id="progress-percentage">0%</span>
</div>
<div class="progress-bar-container">
<div id="progress-bar" class="progress-bar"></div>
</div>
</section>
<!-- Results Panel -->
<section class="panel results-panel">
<div class="panel-header">
<div class="title-with-badge">
<span class="step-num">2</span>
<h2>Enlaces HLS Encontrados</h2>
<span id="results-count" class="badge">0</span>
</div>
<div class="results-actions-top" style="display: flex; gap: 8px;">
<button id="btn-copy-all-top" class="btn-primary btn-small hidden" title="Copiar todos los enlaces HLS">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="margin-right: 2px;">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
Copiar Todos
</button>
<button id="btn-filter-quality" class="btn-secondary btn-small" title="Filtrar por calidad">
Todas las Calidades
</button>
</div>
</div>
<div class="results-container">
<div id="results-placeholder" class="results-placeholder">
<div class="placeholder-icon">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect>
<line x1="7" y1="2" x2="7" y2="22"></line>
<line x1="17" y1="2" x2="17" y2="22"></line>
<line x1="2" y1="12" x2="22" y2="12"></line>
<line x1="2" y1="7" x2="7" y2="7"></line>
<line x1="2" y1="17" x2="7" y2="17"></line>
<line x1="17" y1="17" x2="22" y2="17"></line>
<line x1="17" y1="7" x2="22" y2="7"></line>
</svg>
</div>
<p>Los enlaces resueltos en su máxima calidad aparecerán aquí.</p>
<span class="hint">Pega los enlaces arriba y presiona "Extraer Enlaces HLS".</span>
</div>
<table id="results-table" class="results-table hidden">
<thead>
<tr>
<th width="40"><input type="checkbox" id="select-all-checkbox" checked></th>
<th>Video</th>
<th width="90">Calidad</th>
<th width="120">Acciones</th>
</tr>
</thead>
<tbody id="results-list">
<!-- Dynamically populated rows -->
</tbody>
</table>
</div>
<!-- Bulk Actions Footer -->
<div id="bulk-actions" class="bulk-actions hidden">
<div class="select-info">
<span id="selected-count">0 seleccionados</span>
</div>
<div class="bulk-buttons">
<button id="btn-bulk-copy" class="btn-secondary">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
Copiar HLS
</button>
<button id="btn-bulk-open" class="btn-secondary">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
<polyline points="15 3 21 3 21 9"></polyline>
<line x1="10" y1="14" x2="21" y2="3"></line>
</svg>
Abrir Pestañas
</button>
<button id="btn-bulk-download" class="btn-primary btn-accent">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Exportar M3U
</button>
</div>
</div>
</section>
</main>
</div>
<!-- Notification Toast -->
<div id="toast" class="toast hidden">Enlace copiado correctamente.</div>
<script src="popup.js"></script>
</body>
</html>