您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show total review votes just under the sidebar on Letterboxd film pages, indented for alignment
// ==UserScript== // @name Letterboxd Total Votes Count // @namespace http://tampermonkey.net/ // @version 1.3 // @description Show total review votes just under the sidebar on Letterboxd film pages, indented for alignment // @author you // @match https://letterboxd.com/film/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Grab the page source const pageSource = document.documentElement.innerHTML; // Look for "ratingCount":xxxxx const match = pageSource.match(/"ratingCount":(\d+)/); if (!match) return; const ratingCount = parseInt(match[1], 10); // Find the sidebar container const sidebar = document.querySelector(".sidebar"); if (sidebar) { // Create a container for the rating count const box = document.createElement("div"); box.textContent = `Total Ratings: ${ratingCount.toLocaleString()}`; box.style.fontWeight = "bold"; box.style.margin = "8px 0"; box.style.padding = "6px 0"; box.style.color = "#00ac3e"; // Letterboxd green box.style.marginLeft = "50ch"; // indent ~50 spaces to the right // Insert right after the .sidebar element sidebar.insertAdjacentElement("afterend", box); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址