Automatically switch Gitlab syntax highlight theme between light and dark mode.

Latest Version

Version
0.3.0
Update
October 28, 2024
Size
51.14KiB
Developer
Category
Users
3
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Scripting
Storage
See more

GitLab Auto Syntax Theme Switcher Extension

Automatically switch GitLab Syntax Highlighting theme between Light and Dark mode, following your browser and OS setting.

After your browser's light/dark mode has changed, this extension immediately updates the syntax highlighting theme. It follows your theme preference, for example when using Solarized.

Through the extension options it's possible to add a custom domain, allowing it to be used on self-hosted GitLab Enterprise solutions.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "GitLab Auto Syntax Theme Switcher", "version": "0.3.0", "description": "Automatically switch Gitlab syntax highlight theme between light and dark mode. ", "permissions": [ "scripting", "storage" ], "host_permissions": [ "https://gitlab.com/", "https://*/*" ], "background": { "service_worker": "background.js", "type": "module" }, "content_scripts": [ { "matches": [ "https://gitlab.com/*", "https://*/*" ], "js": [ "import-content.js" ] } ], "options_page": "options.html", "icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "web_accessible_resources": [ { "resources": [ "chunks/*-*.js", "content.js" ], "matches": [ "https://gitlab.com/*", "https://*/*" ] } ]}
Read more