您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
修改浏览器的设备像素比以增加jellyfin图片分辨率
// ==UserScript== // @name 修改设备像素比dpi 调整jellyfin发送的图片分辨率 // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description 修改浏览器的设备像素比以增加jellyfin图片分辨率 // @author tanmoumou252 // @match *://*/web/index.html // @grant none // @license MIT // @icon https://cdn.jsdelivr.net/gh/xushier/HD-Icons@main/border-radius/Jellyfin_A.png // ==/UserScript== (function () { 'use strict'; // 指定你想要的 devicePixelRatio 值,3.75时jellyfin给的图片像素为300px,2时为160px const customPixelRatio = 8; // 修改 devicePixelRatio Object.defineProperty(window, 'devicePixelRatio', { get: function () { return customPixelRatio; } }); // 打印确认修改结果 console.log(`devicePixelRatio 已修改为: ${window.devicePixelRatio}`); })();