I'm facing an issue with my extension where the file content.js
is not being loaded on any webpage despite trying multiple troubleshooting steps. I've tried different permissions, changing site patterns, reinstalling, restarting Chrome, adjusting run_at
values, checking policies, and adding debug statements to my code without success. What could be causing this problem?
Here is a snippet from my manifest.json
:
{
"manifest_version": 3,
"version": "1.0.0",
"name": "Debug",
"short_name": "Debug",
"content_scripts": [
{
"matches": ["https://*/*"],
"js": ["content.js"],
"run_at": "document_end"
}
]
}
Here is the content of content.js
:
document.addEventListener("DOMContentLoaded", () => {
document.body.style.color = "red";
});
Just to note, this is a small debugging extension I created for another main extension. Both content scripts are failing to load, although Bitwarden's content script is visible in the dev tools.