您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides reviews on Letterboxd that are less than a minimum number of characters (with the default being 150)
// ==UserScript== // @name Letterboxd Short Review Culler // @version 1.0.2 // @author @stalkerhumanoid // @license MIT // @description Hides reviews on Letterboxd that are less than a minimum number of characters (with the default being 150) // @match *://letterboxd.com/* // @namespace https://github.com/stalkerhumanoid // @run-at document-idle // ==/UserScript== const CHARACTER_MINIMUM = 150; function cullReviews() { console.log('culling...'); try { const reviews = document.getElementsByClassName('film-detail'); for (const review of reviews) { const reviewBody = review.getElementsByClassName('film-detail-content')[0].getElementsByClassName('body-text')[0].textContent; if (reviewBody.length < CHARACTER_MINIMUM) { console.log('Removing: ' + reviewBody); review.style.display = 'none'; } } } catch (error) { console.log(error); } console.log('done'); } console.log('"Letterboxd Short Review Culler" starting!'); cullReviews(); setTimeout(cullReviews, 1000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址