Window tint for the web.

Latest Version

Version
3.3.1
Update
March 26, 2020
Size
25.35KiB
Developer
Category
Users
22
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
Storage
See more

Obscura Extension

Obscura reduces blue light from web pages, making it easier to fall asleep.

Simple controls: on/off button, and a color picker.

Respects your privacy: no trackers, no ads.

Permissions: this type of extension requires the \"can read and change your data\" permission, even though it does not actually read any of your data. That's why I wrote this extension, and it's why I try to keep the code short - so anyone can look at the code and be sure it is not doing anything nefarious.

Note: that this type of extension does not work on the Chrome Web Store pages, you'll have to visit a normal page to see the effect.

You're encouraged to examine and audit the code yourself, it's relatively short at 58 total lines of JavaScript.

Source code available (MIT License): https://gitlab.com/hoosieree/chrome-extension-obscura

Changelog (starting with version 3.1, see gitlab commit messages for more detail).
3.1: Chrome fixed their issue with PDFs not playing nice with extensions, so I was able to remove some special case code. Nice when an update is smaller than the previous version.
3.2: bugfix - typo caused entire extension to not work. Solution: remove typo.
3.3: Remove debug console messages, remove unused code, remove div id.
3.3.1: Work around some websites not respecting the \"hidden\" attribute of obscura's div, and as a result made the code shorter and simpler. Win-win!
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Obscura", "description": "Window tint for the web.", "version": "3.3.1", "icons": { "128": "icons/icon-128.png", "64": "icons/icon-64.png", "48": "icons/icon-48.png", "32": "icons/icon-32.png" }, "author": "Alex Shroyer", "browser_action": {"default_title": "obscura", "default_popup": "popup.html"}, "permissions": ["storage"], "content_scripts": [{"matches":[""], "run_at": "document_start", "js":["content.js"]}]}
Read more

Similar Extensions

User reviews

icon

Laughing Prince (ID: 0000004e210ac684) Voted 5 ★ - Updated 04/05/2018 Great stuff. Thanks for making this, it's really refreshing after wandering through an endless sea of paid promotions, spyware, and non-functional extensions to find something which immediately upon using I see a noticeable and positive difference. The UI frankly isn't pretty but it's intuitive and works well. Only change I'd recommend is a note when on the extension store that extensions don't work~ I always forget that and spend a minute wondering why nothing is happening before realizing that I need to change to a different page to see a change.