您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
replaces regular rating with top 1000 voters instead
// ==UserScript== // @name IMDB Top 1000 Voters Rating // @namespace https://github.com/nullannos // @version 0.1 // @description replaces regular rating with top 1000 voters instead // @author nullannos // @match https://www.imdb.com/title/* // @require http://code.jquery.com/jquery-latest.min.js // @grant GM_xmlhttpRequest // ==/UserScript== var pageId = $('meta[property=pageId]').attr("content"); (function() { 'use strict'; GM_xmlhttpRequest({ method: "GET", url: "https://www.imdb.com/title/" + pageId + "/ratings", onload: function(response) { var doc = new DOMParser().parseFromString(response.responseText, 'text/html'); var docr = doc.getElementsByClassName("bigcell")[15]; var docrt = docr.innerText; var ratingTip = $('.ratingValue').find("strong").attr("title", docrt + " based on top 1000 voters"); var rating = $('.ratingValue').find('[itemprop="ratingValue"]').text(docrt) } }); })();