AFDB AdultFilmDataBase - Show directly thumbnails of Actress in "Appears with:"

Show directly thumbnails of Actress

Versione datata 02/09/2025. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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);