Turn Off the Lights for Firefox
The entire page will be fading to dark, so you can watch the videos as if you were in the cinema. Works for YouTube and Beyond. Dark mode for all websites. It works for all known video sites such as YouTube, Vimeo, Twitch, Dailymotion, Facebook, etc.
Additional files are visible only to premium users
manifest.json
{
"manifest_version": 3,
"name": "__MSG_name__",
"short_name": "Turn Off the Lights",
"version": "4.4.5.0",
"description": "__MSG_description__",
"author": "Stefan vd",
"homepage_url": "https://www.turnoffthelights.com/support/",
"omnibox": {
"keyword": "totl"
},
"icons": {
"16": "icons/icon16.png",
"24": "icons/icon24.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"96": "icons/icon96.png",
"128": "icons/icon128.png"
},
"default_locale": "en",
"action": {
"default_title": "__MSG_pageatitle__",
"default_icon": {
"19": "icons/iconstick19.png",
"38": "icons/iconstick38.png"
}
},
"background": {
"scripts": [
"js/constants.js",
"js/background.js"
]
},
"content_security_policy": {
"extension_pages": "default-src 'none'; style-src 'self'; media-src https://www.turnoffthelights.com; child-src https://www.youtube.com https://www.turnoffthelights.com; connect-src https://www.turnoffthelights.com; script-src 'self'; img-src 'self' https://www.turnoffthelights.com * data:; object-src 'none'; worker-src 'self'"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"js/constants.js",
"js/content.js",
"js/eco.js"
],
"run_at": "document_end"
},
{
"matches": [
"<all_urls>"
],
"css": [
"css/light.css"
],
"run_at": "document_end",
"all_frames": true,
"match_about_blank": true
},
{
"matches": [
"*://*.youtube.com/*"
],
"js": [
"js/fps.js"
],
"run_at": "document_start",
"all_frames": true
},
{
"matches": [
"<all_urls>"
],
"js": [
"js/autostop.js"
],
"run_at": "document_start",
"all_frames": true,
"match_about_blank": true
},
{
"matches": [
"*://*.youtube.com/*"
],
"css": [
"css/youtube.css"
]
}
],
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+L",
"mac": "MacCtrl+Shift+L"
}
},
"toggle-feature-nightmode": {
"suggested_key": {
"default": "Ctrl+Shift+N",
"mac": "MacCtrl+Shift+N"
},
"description": "__MSG_titelnighttheme__"
}
},
"options_ui": {
"page": "options.html",
"open_in_tab": true
},
"web_accessible_resources": [
{
"resources": [
"/js/fps-block.js",
"/js/hd-quality.js"
],
"matches": [
"*://www.youtube.com/*"
]
},
{
"resources": [
"/js/video-player-status.js"
],
"matches": [
"<all_urls>"
]
}
],
"permissions": [
"contextMenus",
"tabs",
"storage",
"webNavigation",
"scripting",
"theme"
],
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "109.0"
},
"gecko_android": {}
},
"host_permissions": [
"<all_urls>"
]
}