修改浏览器的设备像素比以增加jellyfin图片分辨率
当前为
// ==UserScript==
// @name 修改设备像素比dpi 调整jellyfin发送的图片分辨率
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 修改浏览器的设备像素比以增加jellyfin图片分辨率
// @author You
// @match *://*/web/index.html
// @grant none
// @license MIT
// ==/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}`);
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址