Last active
November 11, 2022 01:25
-
-
Save KCCat/ed52bb12340077ebffebad7a3f67b3a2 to your computer and use it in GitHub Desktop.
e-hentai_hidpi_fix 色图太大修复
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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