IMDb2CL - Perso

Chercher la fiche CL d'une fiche IMDb - Personnalités

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

Advertisement:

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

Advertisement:

// ==UserScript==
// @name        IMDb2CL - Perso
// @namespace   https://www.cinelounge.org/
// @description Chercher la fiche CL d'une fiche IMDb - Personnalités
// @include     https://*.imdb.com/name/nm*
// @icon        https://www.cinelounge.org/images/logot.png
// @version     1.71
// @require      https://code.jquery.com/jquery-3.5.1.min.js
// @grant       none
// ==/UserScript==
var adr = window.location.href.split('/nm');
if(adr[1].substr(7,1)=='/')
{
    var tt = adr[1].substr(0, 7);
}
else
{
    var tt = adr[1].substr(0, 8);
}
var h1s = document.getElementsByTagName("h1");
for (var i = 0; i < h1s.length; i++) {
    var h1 = h1s[i];
    h1.innerHTML += ' <a href=\'https://www.cinelounge.org/imdb2clp/' + tt + '\' target="_blank"><img src=\'https://www.cinelounge.org/images/logot.png\' style=\'padding-top: 10px; width: 20px;\' title=\'Fiche CinéLounge\' /></a>';
}