Docsafterdark Chrome extension icon

Docsafterdark

🔍 Security Report Available
👥 100K+ users
📦 v2.0.2
💾 519KiB
📅 2026-02-21
View on Chrome Web Store

Chrome will indicate if you already have this installed.

Blocks dark mode limitations in Google Docs, bringing a more intuitive and distraction-free writing experience to 100,000 users who value flexibility and control over their document layout. Lets you customize your Docs environment with Beyond Dark Mode's advanced features tailored for writers, designers, and anyone seeking a seamless workflow. Integrates seamlessly into the Google Docs interface, allowing developers to focus on creating innovative tools without compromising user experience.

Overview

Relieve eye-strain from the default Google Docs experience with DocsAfterDark. Customize the look of your documents without modifying the original file.

DocsAfterDark features a modern, sleek dark mode and a vibrant light mode. Try out the "midnight" dark mode variant for true-black backgrounds. Accent colors shared by both modes can be customized using the color slider in the settings popup.

Customize the document background to a darker (or lighter) shade. Or, input your own custom CSS (background-color) color.

Choose between the colorful, grayscale, and black invert modes to render document content in dark mode. The colorful invert mode preserves the essence of colors, but note that the colors will not be exact to the original document.

Globally enable/disable the extension, change to dark/light mode, and access all of the above customizations in the settings popup, which can be opened by clicking on the extension’s icon in your browser’s toolbar.

Temporarily enable/disable the extension for the current document using the toggle button in the bottom left corner of the page.

The source code and release notes are available on GitHub at https://github.com/waymondrang/DocsAfterDark.

If you enjoy using DocsAfterDark and would like to support its development, please consider donating on Buy Me a Coffee at https://www.buymeacoffee.com/waymondrang.

Please note that this extension does not currently work for any other Google Workspace products (e.g. Sheets, Slides).

Tags

Make Chrome Yours/functionality accessibility make chrome yours/functionality

Privacy Practices

Not being sold to third parties, outside of the approved use cases
Not being used or transferred for purposes that are unrelated to the item's core functionality
Not being used or transferred to determine creditworthiness or for lending purposes
v2.0.2 Info Scanned Mar 11, 2026

Security Analysis — Docsafterdark

Analyzed v2.0.2 · Mar 11, 2026 · 3 JS files · 28 KB scanned

Permissions

storage activeTab

Code Patterns Detected

Sets up event listeners

External Connections

www.w3.org github.com www.buymeacoffee.com

Package Contents 39 files · 964KB

📁_metadata6KB
{}verified_contents.json6KB
📁assets497KB
📁fonts171KB
🔤google-sans-v67-latin-500.ttf63KB
🔤google-sans-v67-latin-500.woff223KB
🔤google-sans-v67-latin-regular.ttf63KB
🔤google-sans-v67-latin-regular.woff222KB
📁icons2KB
🖼docsafterdark_128.png1KB
🖼docsafterdark_16.png336B
🖼docsafterdark_48.png772B
📁replacements324KB
🖼access_denied_600_transparent.png151KB
🖼access_denied_transparent.png46KB
🖼checkmark.png239B
🖼checkmark.secondary.png348B
🖼close_18px.svg237B
🖼dimension-highlighted.edited.png176B
🖼dimension-highlighted.png171B
🖼dimension-unhighlighted.edited.png176B
🖼dimension-unhighlighted.png171B
🖼gm_add_black_24dp.png3KB
🖼jfk_sprite186.edited.png50KB
🖼jfk_sprite186.original.png35KB
🖼jfk_sprite186.png35KB
🖼lens.svg1014B
🖼revisions_sprite1.secondary.svg720B
📜canvas.bundle.js5KB
📄canvas.bundle.js.map6KB
🎨docs.bundle.css126KB
📄docs.bundle.css.map10KB
📜docs.bundle.js11KB
📄docs.bundle.js.map60KB
🎨frame.bundle.css18KB
📄frame.bundle.css.map3KB
🎨global.bundle.css4KB
📄global.bundle.css.map745B
🎨inject.bundle.css114KB
📄inject.bundle.css.map11KB
{}manifest.json1KB
📜popup.bundle.js12KB
📄popup.bundle.js.map65KB
🌐popup.html14KB

What This Extension Does

Docsafterdark is a Chrome extension designed to improve readability on Google Docs by applying dark mode themes, customizing accent colors, and offering content inversion filters. It solves the problem of eye strain caused by default light interfaces without altering the original document files. The tool is intended for students, writers, and professionals who spend long hours editing documents in low-light environments.

Permissions Explained

  • storageexpected: This allows the extension to remember your settings, such as which dark theme you prefer or your custom accent colors, so they persist when you refresh the page.
    Technical: Accesses chrome.storage.sync and chrome.storage.local. This API is used to serialize user preferences into JSON objects. If compromised, an attacker could theoretically read saved settings, though this data is typically non-sensitive unless users store passwords or tokens here (which this extension does not appear to do).
  • activeTabexpected: This grants the extension permission to interact with the currently open tab, allowing it to inject its styling code into Google Docs pages.
    Technical: Enables access to chrome.tabs and chrome.scripting APIs. It allows reading DOM elements of the active tab to apply CSS filters and injecting content scripts. The scope is limited to the 'active' tab; it does not have blanket access to all tabs on the site, reducing the attack surface compared to <all_urls>.

Your Data

The extension communicates with GitHub for source code verification and Buy Me a Coffee for donation processing. It does not appear to send your document content or personal data to third-party servers beyond these specific, expected destinations.

Technical Details

Network requests are observed to www.w3.org (likely for CSS resources), github.com (for version checks or asset loading), and www.bymeacoffee.com (HTTPS only). No evidence of exfiltration of page content, cookies, or authentication tokens. All external communication appears to be over HTTPS.

Code Findings

Content Security Policy Not SetLow

The extension does not enforce strict security rules on which scripts can run, relying instead on Chrome's default policies. This is standard for simple extensions but means it cannot block malicious code if injected by a compromised site.

Technical: The manifest lacks a 'content_security_policy' field. Without this, the Content Security Policy (CSP) defaults to allowing all scripts and styles from any source within the extension's context. While the extension itself is small (28 KB), the lack of CSP means it cannot sandbox its own execution environment.

💡 Most lightweight extensions omit CSPs because they do not load external scripts or complex libraries that require strict isolation. It is a common pattern for simple UI modifications.

Broad Content Script Injection ScopeInfo

The extension injects its code into any Google Docs page (indicated by the wildcard in the injection URL). This is necessary for it to work on all your documents, but it means it runs on every single doc you open.

Technical: Manifest V3 content script entry point: 'matches': ['*://docs.google.com/document/*']. The wildcard '*' allows matching any subdomain and path under docs.google.com. This is required for functionality but increases the surface area if the extension code were to be compromised or contain a vulnerability.

💡 Extensions modifying page appearance must match the specific domain they intend to modify. Since this tool modifies every Google Doc, the wildcard is functionally necessary and appropriate.

Bottom Line

Docsafterdark presents a low-risk profile suitable for general use. Its permissions are strictly aligned with its stated purpose of modifying the visual appearance of Google Docs, and it does not request access to sensitive user data or network resources beyond what is necessary for updates and donations. Users can confidently install this extension to reduce eye strain without significant security concerns.

The easiest way to access the Borderless Internet, Hola VPN gets you Access to the global online content you want!
Make Chrome Yours/functionality
Speed up, slow down, advance and rewind HTML5 audio/video with shortcuts
Make Chrome Yours/functionality
Skip sponsorships, subscription begging and more on YouTube videos. Report sponsors on videos you watch to save others' …
Make Chrome Yours/functionality