Crisp up-scaled images for displays with 150% DPI scale factor (Firefox 74+)

Prevents blurry anti-aliased borders between picture sampling areas ("pixels").

当前为 2020-06-17 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

Advertisement:

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

Advertisement:

作者
myf
评分
0 0 0
版本
1.0.1
创建于
2020-06-17
更新于
2020-06-17
大小
8.3 KB
许可证
CC0 - Public Domain
适用于

!! This style makes sense only for displays with DPI zoom factor set to 150% !!

If you have such display (be it for it's higher physical device pixel density or just wanted to scale up entire graphical user interface) then it is quite impossible to enjoy pixel-art as decently crisp natural squared mosaic, because web content by definition is operated in "virtual pixel" dimension, what then does not fit to physical display points. This style scales image views (images opened directly) back so they should fit to physical display points again.

While this style could operate as global, since it is quite scary it is by restricted to *.gif and *.png URLS only. That means it won't work for images served without suffix. Alter or remove `@-moz-document` definition if you need to remove this restriction.