<div align="center">
  <img src="icons/icon128.png" alt="Dark Mode for Chrome Logo" width="128">
  <h1>Dark Mode for Chrome — Night & Eye Care</h1>
  <p><em>Dark mode, midnight black, and black & white reading modes for websites in Chrome.</em></p>
  
  [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
  [![Chrome Web Store](https://img.shields.io/badge/Chrome_Web_Store-Available-green.svg)](https://chromewebstore.google.com/detail/dark-mode-for-chrome-%E2%80%94-ni/hnjcjcghfnjfonceacdfpfhcjadffdhe?authuser=0&hl=en-GB&utm_source=weblanding&utm_medium=referral&utm_campaign=chrome_extension_promo)
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#)
</div>

---

## 📖 Overview

**Dark Mode for Chrome** is a reading-focused Chrome extension that helps make bright websites easier to read by applying a cleaner, more comfortable viewing experience across the web. It reduces eye strain and gives users ultimate control over visual comfort while browsing.

Whether you're a night owl burning the midnight oil or someone who suffers from bright-screen fatigue, this extension lets you choose the visual mode that perfectly fits your eyes and environment.

## 🌟 Key Features

### 🎨 Multiple Reading Modes
- **Classic Dark**: Balanced dark browsing for everyday use.
- **Midnight Black**: Deeper contrast for low-light environments, perfect for OLED screens.
- **Black & White**: Monochrome reading mode that removes colorful distractions for ultimate focus.

### ⏸️ Per-Site Control
Pause and resume the extension on specific websites. Perfect for sites that already have a good native dark theme or pages where color inversion is not desirable.

### ⏰ Automatic Scheduling
Set it and forget it! You can turn dark mode on and off automatically based on your customized schedule.

### ⚡ Lightweight & Fast
A custom popup built for fast access to main controls—no deeply buried settings.

## 🎯 Who It Is For

This extension is built specifically for people who spend long hours reading in Chrome and want:
- Better readability at night
- Reduced glare on bright websites
- A distraction-free, black-and-white reading environment
- Simple, per-site control instead of complex global toggles

## 🛠️ Installation

### Option 1: Chrome Web Store (Recommended)
You can install the official version directly from the [Chrome Web Store](https://chromewebstore.google.com/detail/dark-mode-for-chrome-%E2%80%94-ni/hnjcjcghfnjfonceacdfpfhcjadffdhe?authuser=0&hl=en-GB&utm_source=weblanding&utm_medium=referral&utm_campaign=chrome_extension_promo).

### Option 2: Install from Source (Developer Mode)
1. Download or clone this repository:
   ```bash
   git clone https://github.com/drdhavaltrivedi/dark-mode-for-chrome.git
   ```
2. Open Google Chrome and navigate to `chrome://extensions/`.
3. Enable **Developer mode** in the top right corner.
4. Click on **Load unpacked** in the top left.
5. Select the downloaded `dark-mode-for-chrome` directory.
6. Pin the extension to your toolbar and enjoy!

## ⚠️ Important Limitations

Chrome restricts extensions from styling some protected pages for security reasons. The extension will not work on:
- Chrome Web Store pages
- Internal browser pages (like `chrome://settings` or `chrome://extensions`)
- New Tab Page

## 💬 FAQ

<details>
<summary><b>Does it work on every page?</b></summary>
It works on most standard websites! However, Chrome blocks extensions from acting on protected pages (e.g., `chrome://` URLs and the Web Store).
</details>

<details>
<summary><b>What is the difference between the modes?</b></summary>
<b>Classic Dark</b> is the standard balanced mode, <b>Midnight Black</b> provides deeper blacks and higher contrast (great for OLED), and <b>Black & White</b> removes all color for pure, focused reading.
</details>

<details>
<summary><b>Can I disable it on specific sites?</b></summary>
Yes! You can pause the extension on any active website directly from the popup.
</details>

## Privacy Policy

For Chrome Web Store submission and public hosting, this repository includes a static privacy policy page:

- Source file: [privacy-policy/index.html](privacy-policy/index.html)
- Vercel config: [vercel.json](vercel.json)
- Hosted route after deploy: `/privacy-policy/`

This page states the extension’s current data behavior accurately: settings are stored in Chrome extension storage, and no personal data is collected or transmitted to the developer.

## License

This project is open source under the GNU General Public License v3.0. See [LICENSE](LICENSE).

## 👨‍💻 Developer
Developed with ❤️ by [Dr. Dhaval Trivedi](https://drdhaval.in)

🔗 **GitHub Profile:** [drdhavaltrivedi](https://github.com/drdhavaltrivedi)

---
<p align="center">
  <i>Give your eyes a break. Happy Browsing! 🌙</i>
</p>
