DarkPDF
Adds a simple dark mode functionality for PDF files in Google Chrome
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version": 3,
"name": "DarkPDF",
"description": "Adds a simple dark mode functionality for PDF files in Google Chrome",
"version": "2.4.1",
"icons": {
"128": "/icons/document.png"
},
"action": {
"default_icon": "/icons/document.png",
"default_popup": "/popup.html"
},
"background": {
"service_worker": "/scripts/background.js"
},
"permissions": [
"activeTab",
"storage",
"tabs",
"scripting"
],
"host_permissions": [
"<all_urls>"
],
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"/scripts/content.js"
]
}
],
"commands": {
"run-dark-mode": {
"suggested_key": {
"default": "Ctrl+Shift+9",
"mac": "Command+Shift+9"
},
"description": "Apply dark mode to the current page"
},
"_execute_action": {
"suggested_key": {
"windows": "Ctrl+Shift+Y",
"mac": "Command+Shift+Y",
"chromeos": "Ctrl+Shift+U",
"linux": "Ctrl+Shift+J"
}
}
}
}