Skip to content

Instantly share code, notes, and snippets.

@KCCat
Last active November 11, 2022 01:25
Show Gist options
  • Save KCCat/ed52bb12340077ebffebad7a3f67b3a2 to your computer and use it in GitHub Desktop.
Save KCCat/ed52bb12340077ebffebad7a3f67b3a2 to your computer and use it in GitHub Desktop.
e-hentai_hidpi_fix 色图太大修复
// ==UserScript==
// @name e-hentai hidpi fix
// @namespace Violentmonkey Scripts
// @match https://exhentai.org/mpv/*/*
// @match https://e-hentai.org/mpv/*/*
// @run-at document-start
// @grant none
// ==/UserScript==
JSON_parse = JSON.parse;
JSON.parse = (DJ) => {
var rDJ = JSON_parse(DJ);
try{
rDJ.xres /= window.devicePixelRatio;
rDJ.yres /= window.devicePixelRatio;
}
catch{};
return rDJ;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment