Show directly thumbnails of Actress
Versione datata
// ==UserScript==
// @name AFDB AdultFilmDataBase - Show directly thumbnails of Actress in "Appears with:"
// @description Show directly thumbnails of Actress
// @author janvier57
// @namespace https://greasyfork.org/users/7434
// @icon https://external-content.duckduckgo.com/ip3/www.adultfilmdatabase.com.ico
// @match https://www.adultfilmdatabase.com/actor/*
// @version 1.0.1
// @license unlicense
// @grant none
// @require https://code.jquery.com/jquery-3.6.0.min.js
// ==/UserScript==
(function($) {
'use strict';
$(document).ready(function() {
$('.ui-tabs-anchor[href*="performedwith.cfm"]').on('click', function() {
setTimeout(function() {
$(".ui-widget-content a.w3-small[href^='/actor/']").each(function() {
var attr = $(this).attr('actorthumb');
if (typeof attr !== typeof undefined && attr !== false) {
var img = $('<img class="actorthumb" src="https://www.adultfilmdatabase.com' + attr + '">');
img.on('error', function() {
$(this).remove();
});
$(this).before(img);
}
});
}, 500); // wait for 500ms to allow content to load
});
});
})(jQuery);
// Add style
var style = document.createElement('style');
style.innerHTML = `
.actorthumb {
width: 50px;
height: 50px;
border-radius: 8px;
object-fit: contain;
margin: 0 0px 0 -20px;
}
`;
document.head.appendChild(style);