Night Reader EN
Peter Nerlich · Firefox
Reading comfortably with inverted brightness but preserved hue
<all_urls>),意味着它可以读取你在任意站点的页面内容,包括已登录的页面。这是许多扩展正常工作的必要条件,但也值得你确认来源可信。
截图
简介
This extension eases your eyes by inverting the brightness of every webpage you browse.
The majority of websites mainly use very light colors, but some already have a refreshing dark theme. For these the user can disable the domain, essentially setting it on a blacklist of the application.
Its goal is, in contrast to the approach of creating new webpage–specific templates, to be as general as possible. This is best achieved by applying the CSS filter invert to the document root, because it inverts the whole area in one swoop after it got rendered normally instead of going through every element. This is even more efficient because CSS filters rely on the browser implementation, meaning all the good stuff like hardware acceleration or other system specific optimizations.
Images should still show normally, but single elements cannot be excluded from the filter. This is no problem, since they can just get inverted on their own before the whole document gets inverted, reverting the images to their original color.
To preserve the visual appearance of websites which may be iconic like the blue theme of Facebook, another filter is applied that rotates the hue back by 180 degrees. However, due to certain limitations of the RGB color model, very saturated colors get clipped in their value component that would have to exceed the maximum, resulting in occasional weird–looking images after they got reverted. Where an exact representation is needed, the hue–rotation can be disabled.
[TODO]
more ideas to be implemented in future releases are:
— serve options page to input custom CSS rules to optimize other websites
— friendly ui for options page (e.g. click [+] to add a rule, specify the case e.g. as regex, input CSS to be applied into text field)
— keyboard shortcuts for enabling/disabling on domain and more
— (maybe) make only–invert option domain specific
— (maybe) optionally stop inverting input text fields
— (do YOU have an idea? contact me!)
[KNOWN BUGS]
— (confirmed for Chrome) Prints get heavily pixelated when NightReader is enabled (even with "enabled globally" unchecked). There might be a possible fix in a future Version.
Workaround: disable Extension for printing
[CHANGELOG]
[Version 1.7.41]
fix for changed Twitter CSS
improvements and tweaks for YouTube, Twitch, Twitch Beta, Wikipedia, TED and Bandcamp
[Version 1.7.4]
made popup visually respond like websites (bg + css filter)
adjustment for new YT theme (and other domains)
updated preset blacklist
[Version 1.7.3]
Updated predefined custom rules for twitch.tv (not inverting the dark theme)
added predefined custom rules for bandcamp.com
[Version 1.7.2]
Fixed/improved some of the predefined custom rules
added message encouraging feedback
[Version 1.7.1]
Bugfix: extension won't install because options page (WIP) was referenced but not found because it got excluded when packing extension
[Version 1.7]
First public release of Night Reader
Working:
- inverting webpages via css filter at earliest possible stage (when loading a webpage)
- inverting images etc. back to display normally
- hue-rotating by 180 deg to achieve a brightness invert effect/preserving hues to keep the visual appearence as close to the original as possible
- global quick extension disable switch
- domain based blacklist managed by user
- hidden CSS rules to further enhace and smoothen some features of a couple of popular websites like Facebook and Twitter
- hue-rotation disable switch as workaround for loss of color information with very saturated colors
Night Reader 是做什么的
Night Reader 是一款面向 Firefox 的外观主题类扩展,主要用来更换浏览器配色、给网页加深色模式、调整界面观感。官方对它的介绍是:Reading comfortably with inverted brightness but preserved hue在Firefox 附加组件商店(AMO)上,它当前版本 1.7.42resigned1,评分 4.11(28 人评价),约 54 名用户。
适合什么人用
从功能定位看,Night Reader 更适合长时间对着屏幕、希望降低眼睛负担的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。需要注意的是它作用于所有网站,装上后建议先观察一两天,确认不影响常用站点的正常使用。
怎么安装 Night Reader
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Night Reader 是免费的吗?
Night Reader 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Night Reader 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Night Reader 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Night Reader?
在扩展管理页找到 Night Reader,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
站点访问 4
*://*/*ftp://*/*http://*/*https://*/*
接口权限 2
activeTabstorage


