Buscador de vídeos porno – PornHub.com
1–2 minutos
Buscador Pornhub
body{
margin:0;
background:#111;
color:white;
font-family:Arial, sans-serif;
}
header{
padding:20px;
background:#1b1b1b;
display:flex;
gap:10px;
position:sticky;
top:0;
z-index:999;
}
input{
flex:1;
padding:12px;
border:none;
border-radius:8px;
font-size:16px;
}
button{
padding:12px 20px;
border:none;
border-radius:8px;
background:#ff9000;
color:white;
font-weight:bold;
cursor:pointer;
}
.videos{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
gap:20px;
padding:20px;
}
iframe{
width:100%;
height:220px;
border:none;
border-radius:10px;
background:black;
}
.video-card{
background:#1c1c1c;
padding:10px;
border-radius:10px;
}
const videosContainer = document.getElementById(«videos»);
/*
LISTA DE 100 VÍDEOS EMBEBIDOS
Sustituye los viewkey por los reales de Pornhub
*/
const videoKeys = [
«ph5f1a1a1a1a1a1»,
«ph5f1a1a1a1a1a2»,
«ph5f1a1a1a1a1a3»,
«ph5f1a1a1a1a1a4»,
«ph5f1a1a1a1a1a5»,
// DUPLICA HASTA 100
];
/* MOSTRAR LOS VÍDEOS */
function cargarVideos(){
videosContainer.innerHTML = «»;
videoKeys.forEach(key => {
const div = document.createElement(«div»);
div.className = «video-card»;
div.innerHTML = `
`;
videosContainer.appendChild(div);
});
}
cargarVideos();
/* BUSCADOR */
function buscar(){
const texto = document.getElementById(«search»).value.trim();
if(!texto) return;
/*
REDIRECCIÓN A BÚSQUEDA DE PORNHUB
*/
window.open(
«https://www.pornhub.com/video/search?search=» + encodeURIComponent(texto),
«_blank»
);
}
