IMDB bigger thumbnails/images/poster

edits image url to get the full size picture and increases poster size

目前為 2021-06-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         IMDB bigger thumbnails/images/poster
// @namespace    https://gf.qytechs.cn/en/users/12725-alistair1231
// @version      0.1
// @description  edits image url to get the full size picture and increases poster size
// @author       Alistair1231
// @match        https://www.imdb.com/*
// @icon         https://www.google.com/s2/favicons?domain=imdb.com
// @grant        none
// @license GPL-3.0
// ==/UserScript==

(function () {
    // for sites like popular movies
    // https://www.imdb.com/chart/moviemeter/
    Array.from(document.querySelectorAll(".posterColumn a img")).map(x => {
        x.width = 160;
        x.height = 220;
        x.src = x.src.match(/https:\/\/m\.media-amazon\.com\/images\/M\/[^\.]+\._V\d_/)[0] + ".jpg";
    });
    // for sites like search
    // https://www.imdb.com/find?q=invin
    Array.from(document.querySelectorAll(".primary_photo a img")).map(x => {
        x.width = 160;
        x.height = 220;
        x.src = x.src.match(/https:\/\/m\.media-amazon\.com\/images\/M\/[^\.]+\._V\d_/)[0] + ".jpg";
    });

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址