Skip to content

About

Chrome extension that turns any web page grayscale to reduce distractions, fight doom-scrolling, and improve focus. Per-site rules, time limits, 14 languages, glassmorphism UI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

BlackOnWhite

BlackOnWhite

Grayscale any website. Stay focused. Kill doomscrolling.
A Manifest V3 Chrome extension with per-site rules, daily time limits, schedules, 14 languages, and a glassmorphism UI.

Download v1.0.0 Release Install Guide

Manifest V3 License 14 Languages Zero Dependencies Version 1.0.0

BlackOnWhite Before and After — vivid dopamine feed vs calm grayscale mode

BlackOnWhite Popup UI — Current Site toggle, Per-Site Rules & Time Limits, Palettes & Schedules


Overview

BlackOnWhite applies a grayscale filter to any website, helping you reduce visual stimulation and stay focused. It builds on the concept of digital grayscale — stripping color from distracting sites makes them less engaging and reduces the urge to keep scrolling.

Use it to make social media less addictive, reduce eye strain, or simply stay on task. BlackOnWhite gives you full control through per-site rules, time-based activation, and a polished UI.


Features

Core

  • One-click toggle — enable or disable grayscale for the active tab instantly
  • Always-on rules — mark specific sites (YouTube, X/Twitter, Reddit, etc.) to always load in grayscale
  • Quick-add shortcuts — one-tap buttons for popular social media and streaming platforms
  • Smooth transitions — configurable CSS animation when toggling the filter

Time Limits & Usage Tracking

  • Session limits — auto-enable grayscale after continuous time on a site (5–120 min)
  • Daily limits — trigger grayscale when total daily time on a site exceeds a threshold (15–480 min)
  • Usage dashboard — visual bar chart showing today's per-site browsing time
  • Background tracking — time tracking runs in the service worker, even when the popup is closed

Customization

  • 6 color palettes — 3 dark (Indigo, Emerald, Rose) and 3 light (Sky, Lavender, Mint)
  • Auto dark/light mode — follows your OS preference automatically
  • Manual theme override — lock to dark or light mode regardless of system settings
  • Keyboard shortcut — Alt+Shift+B (Mac: Ctrl+Shift+B) to toggle without opening the popup

Internationalization

14 languages supported out of the box:

English, Español, Português, हिन्दी, 中文, Русский, العربية, Français, Deutsch, 日本語, 한국어, Türkçe, Bahasa Indonesia, Italiano

Interface

  • Glassmorphism design — frosted-glass aesthetic with blurred backgrounds and soft glows
  • 5-tab navigation — Current Site, Sites List, Time Limits, Settings, About
  • Toast notifications — inline feedback when adding or removing sites
  • Favicon integration — site icons displayed in the always-on list and current site badge
  • Compact layout — optimized for Chrome's popup width (~360 px)

Installation

This extension is not published on the Chrome Web Store. Download the packaged release or load it directly from source in developer mode.

Option A: Download Release ZIP (Recommended)

  1. Download BlackOnWhite-v1.0.0.zip from the latest GitHub Release and extract it.
  2. Open chrome://extensions/ and enable Developer mode (top-right toggle).
  3. Click Load unpacked and select the extracted folder (containing manifest.json).
  4. Pin BlackOnWhite in Chrome's toolbar for one-click access.

Option B: Clone from Source

git clone https://github.com/Lemelson/BlackOnWhite.git

Then open chrome://extensions/, enable Developer mode, and click Load unpacked on the cloned BlackOnWhite folder.


Usage

Toggling Grayscale

Method Action
Popup Click the extension icon and toggle the switch
Keyboard Alt+Shift+B (Mac: Ctrl+Shift+B)
Always-On Enable "Always grayscale on this site" for automatic activation

Managing Sites

Open the Sites tab to:

  • Add domains manually (e.g., youtube.com)
  • Use Quick Add chips for popular platforms (YouTube, X, Reddit, Instagram, TikTok, Facebook, Twitch, Pinterest, LinkedIn, Netflix, Discord, Telegram)
  • Remove entries with the delete button

Configuring Time Limits

Open the Limits tab to:

  1. Enable time limits with the toggle
  2. Set a session limit — continuous minutes before grayscale activates
  3. Set a daily limit — total minutes per day before activation
  4. Monitor per-site usage in the Today's Usage section

Changing Appearance

Open the Settings tab to:

  • Toggle smooth CSS transitions
  • Enable or disable auto dark/light theme
  • Select independent color palettes for dark and light modes
  • View and customize the keyboard shortcut

Project Structure

BlackOnWhite/
├── manifest.json            # Extension manifest (Manifest V3)
├── background/
│   └── background.js        # Service worker: time tracking, badge, shortcuts
├── content/
│   ├── content.js           # Content script: applies grayscale filter
│   └── content.css          # CSS classes for grayscale and transitions
├── popup/
│   ├── popup.html           # Popup markup (5 tabs)
│   ├── popup.css            # Glassmorphism styling, palettes, themes
│   ├── popup.js             # Popup logic: toggle, sites, limits, themes
│   └── i18n.js              # Translations (14 languages)
├── icons/
│   ├── icon16.png
│   ├── icon32.png
│   ├── icon48.png
│   └── icon128.png
├── LICENSE
└── README.md

Tech Stack

Layer Technology
Manifest Chrome Extensions Manifest V3
Language Vanilla JavaScript (ES2020+)
Styling Pure CSS — no frameworks or preprocessors
Dependencies None
Storage chrome.storage.local
Background Service Worker (chrome.alarms, chrome.tabs)
Permissions activeTab, storage, alarms, tabs, scripting

Keyboard Shortcuts

Platform Default Shortcut
Windows / Linux Alt + Shift + B
macOS Ctrl + Shift + B

Customize via chrome://extensions/shortcuts.


Browser Compatibility

BlackOnWhite is compatible with any Chromium-based browser:

  • Google Chrome
  • Microsoft Edge
  • Brave
  • Opera
  • Vivaldi
  • Arc

Firefox is not supported — the extension relies on Chrome's Manifest V3 API.


License

This project is released under a custom open-source license. Summary:

Allowed Not Allowed
Personal use and study Publishing to Chrome Web Store or any extension marketplace
Modification and customization Selling or monetizing derivative works
Redistribution with this license Creating premium or paid versions
Sideloading in developer mode
Free, open-source derivatives

See LICENSE for the full text.


Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-improvement
  3. Commit your changes: git commit -m "Add: description of change"
  4. Push: git push origin feature/my-improvement
  5. Open a Pull Request

All contributions are subject to the project's license.


Why Grayscale?

Color is one of the primary engagement triggers in digital interfaces. Removing it:

  • Makes social media feeds less visually compelling — reduces doom-scrolling
  • Strips clickbait power from video thumbnails — fewer rabbit holes
  • Increases overall screen-time awareness

BlackOnWhite provides a lightweight, non-intrusive way to regain control over browsing habits.


Made with focus in mind

About

Chrome extension that turns any web page grayscale to reduce distractions, fight doom-scrolling, and improve focus. Per-site rules, time limits, 14 languages, glassmorphism UI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages