
document.addEventListener("DOMContentLoaded", function () {
// === Your custom thumbnail map ===
// data-title MUST match exactly the category name shown in your HTML
const customThumbs = {
"Teen Amateur": "https://green-teens.info/wp-content/uploads/2025/12/wow-this-new-teen-girl-is-super-sexy-and-pleases.jpg",
"Latina": "https://green-teens.info/wp-content/uploads/2025/11/custom-latina.jpg",
"Anal": "https://green-teens.info/wp-content/uploads/2025/11/custom-anal.jpg",
// add more here...
};
// Select all elements linking to category pages
const categoryLinks = document.querySelectorAll('a[href*="/category/"]');
categoryLinks.forEach(a => {
const catName = a.getAttribute("data-title");
if (!catName) return; // no category name
if (!customThumbs[catName]) return; // no custom thumbnail for this category
// Find the inside this
const img = a.querySelector("img");
if (!img) return;
// Replace image source
img.src = customThumbs[catName];
// (Optional) Update srcset & sizes to prevent WP from overriding it
img.srcset = "";
img.removeAttribute("srcset");
img.removeAttribute("sizes");
});
});