您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
This script adds two small but very practical links to the IMDb person detail page. It links directly to the film list by job type (director or actor), sorted by rating and shows only Feature films and TV Movies.
当前为
// ==UserScript== // @name IMDb: add direct 'Highest Rated Titles With' links to person page // @namespace http://greasyfork.icu/en/users/8981-buzz // @description This script adds two small but very practical links to the IMDb person detail page. It links directly to the film list by job type (director or actor), sorted by rating and shows only Feature films and TV Movies. // @author buzz // @require https://code.jquery.com/jquery-2.2.0.min.js // @version 0.2 // @license GPLv2 // @match http://*.imdb.com/name/nm* // @grant none // @noframes // ==/UserScript== /* jshint -W097 */ 'use strict'; function addLink(job_type, imdb_id) { var text = job_type.charAt(0).toUpperCase() + job_type.slice(1); var html = '<a href="/filmosearch?explore=title_type&role=' + imdb_id + '&ref_=filmo_ref_job_typ&sort=user_rating,desc&mode=detail&page=1&job_type=' + job_type + '&title_type=movie%2CtvMovie" title="Show movies by rating (' + job_type + ')">' + text + '</a> <span>|</span> '; $('.maindetails_center .rightcornerlink:first').prepend(html); } $(function($) { var imdb_id; var re = /^\/name\/(nm[0-9]{7})\//; var m = re.exec(window.location.pathname); if (m) { imdb_id = m[1]; addLink('director', imdb_id); addLink('actor', imdb_id); } });