您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Clicking the photos section title or more image will open the full tiled view gallery page instead of a single photo.
当前为
// ==UserScript== // @name IMDb Full Gallery Redirect // @namespace https://greasyfork.org/users/636724-cml99 // @match http*://*imdb.com/title/* // @grant GM_xmlhttpRequest // @grant GM.xmlHttpRequest // @grant GM_addStyle // @version 1.0.0 // @author CML99 // @license CC-BY-NC-SA-4.0 // @description Clicking the photos section title or more image will open the full tiled view gallery page instead of a single photo. // @icon https://www.google.com/s2/favicons?sz=64&domain=imdb.com // ==/UserScript== var photosTitle = document.querySelector('.ipc-page-section[data-testid="Photos"] a.ipc-title-link-wrapper'); var photosMore = document.querySelector('.ipc-page-section[data-testid="Photos"] a.hide-b-m'); const urlSplit = window.location.pathname.split('/').filter(segment => segment); let ttid = urlSplit[1]; let galleryLink = 'https://www.imdb.com/title/' + ttid + '/mediaindex/'; photosTitle.href = galleryLink; photosMore.href = galleryLink;