您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides reviews from Movie view
// ==UserScript== // @name Plex Review Hide // @version 0.2 // @description Hides reviews from Movie view // @author Xenomer // @include /^https?://[a-zA-Z0-9.]+:32400/web/index.html/ // @include http*://app.plex.tv* // @include http*://plex.* // @grant none // @namespace https://greasyfork.org/users/696176 // ==/UserScript== const log = (...l) => console.log('[REVIEWHIDE]', ...l); let interval = setInterval((function() { 'use strict'; var xpath = "//div[text()='Reviews'][contains(@class, 'HubTitle-hubTitle')][not(contains(@style, 'hidden'))]/../.."; var matchingElement = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; if(matchingElement && matchingElement.style.visibility !== 'hidden') { matchingElement.style.visibility = 'hidden'; matchingElement.style.height = '0'; matchingElement.style.margin = '0'; log('hidden'); } }), 500);