Profile
Back to NewsBack
GitHub Trending 4 min
Reader Mode
turnoffthelights/Turn-Off-the-Lights-browser-extension: Turn Off the Lights Browser extension for Google Chrome, Firefox, Opera, Safari, Naver Whale, Yandex, Samsung Internet, and Microsoft Edge.

turnoffthelights/Turn-Off-the-Lights-browser-extension: Turn Off the Lights Browser extension for Google Chrome, Firefox, Opera, Safari, Naver Whale, Yandex, Samsung Internet, and Microsoft Edge.

8 hours ago

Turn Off the Lights Browser Extension

Turn Off the Lights Browser Extension Logo

Turn Off the Lights is a popular browser extension that works on all major web browsers such as Google Chrome, Firefox, Opera, Safari, Yandex, Maxthon, Brave, Vivaldi, Cốc Cốc, Samsung Internet, Naver Whale, and Microsoft Edge.

!Chrome Web Store !Chrome Web Store !Chrome Web Store

Project
GPLv3 license</a> CodeQL</a>

Using Turn Off the Lights to dims the web page and reduces the eye strain caused by the bright screen. And it will highlight the video player on that web page such as on YouTube.

Join our growing community on Facebook to stay up to date!

Join our growing Translators community on Crowdin to stay up to date!

Please use and enjoy it, and if you can make a donation of any amount, I'd appreciate it immensely

Turn Off the Lights Browser extension Screenshot in Google Chrome

Features

  • Turn the lights back on, by clicking on it
  • Support multiple video sites: YouTube, HTML5 video,... and more
  • Customize your YouTube:
* Auto HD: Set videos to play in HD automatically. Users can select from highres > 8K > 5K> 4K > 1080p > 720p > 480p > 360p > 240p > 144p > default * Auto Wide: Automatically plays the video on the widest mode ,... and more
  • Easter Eggs:
* Shortcut key: T -> Do you like a real movie theater feeling?
  • Option to make the screen dark when the user clicks on the play button
  • Option to turn on/off the fade-in and fade-out effects
  • Custom colors
  • Option to Flash Detection
  • Option to Show Dimness Level Bar
  • Option Eye Protection for when it's night. And with a whitelist/blacklist filter
  • Option atmosphere lighting that shows a glow around the video player
  • Option to show the dark layer on the top of the window
  • Options to shortcut keys:
* Ctrl + Shift + L to toggle the lights * Alt + F8 to restore the default opacity value * Alt + F9 to save the current opacity value * Alt + F10 to enable/disable the Eye Protection feature * Alt + (arrow up) to increase the opacity * Alt + (arrow down) to decrease the opacity Alt + to toggle the lights on all open tabs
  • Option for Mouse Wheel Volume Control for each HTML5 video player
  • Option to add a filter to the current HTML5 video player (grayscale, sepia, invert, contrast, saturate, hue rotation, and brightness)
  • Option to show the Audio Visualization effect on top of the current HTML5 video (Blocks, Frequency, and Music Tunnel)
  • Option to loop the current HTML5 video player
  • Option to place the Night Mode switch to toggle YouTube in black or white theme. And with a whitelist/blacklist filter
* Time stamp: Activate the Night Mode within the chosen time * Blackout: Dims the web page and activates the Night Mode
  • Option to stop YouTube and HTML5 videos from automatically playing.

Installation

Create package

  1. Install the dependencies:
npm install
  1. Build the extension for the browser you want to test:
npm run chrome     # creates dist/chrome
   npm run firefox    # creates dist/firefox
   npm run opera      # creates dist/opera
   npm run edge       # creates dist/edge
   npm run whale      # creates dist/whale
   npm run yandex     # creates dist/yandex
   npm run samsung    # creates dist/samsung (submit this to the Galaxy Store)

Or build and package all supported browsers at once:

npm run browserzip

For Safari, use:

npm run safari     # builds the Safari extension resources for Xcode

Load the unpacked extension

Google Chrome / Microsoft Edge / Opera / Brave / Vivaldi / Yandex / Naver Whale

  1. Open your browser's extensions page:
- Chrome, Brave, Vivaldi: chrome://extensions - Edge: edge://extensions - Opera: opera://extensions - Yandex: browser://extensions - Whale: whale://extensions
  1. If you already have Turn Off the Lights installed, disable it
  2. Check Developer mode at the top of the Extensions page
  3. Click Load unpacked (or Load unpacked extension...)
  4. Choose the generated dist/ folder (for example dist/chrome for Google Chrome)

Firefox

  1. Open about:debugging#/runtime/this-firefox
  2. Click Load Temporary Add-on…
  3. Select the manifest.json file inside dist/firefox

Safari

  1. Run npm run safari to build the extension resources
  2. Open the xcode/Turn-Off-the-Lights-Safari-extension project in Xcode
  3. Build and run the extension target following Apple's Safari extension development instructions

STABLE Channel

The browser extension is available in the following stores:

BETA Channel

Chat with me