Despite my attempts to search on Google, I have been unable to find a solution.
I am currently working on developing a Chrome extension with the specific goal of changing/inserting the style.display property for one or more elements. This task would normally be straightforward, but I am facing issues getting it to function properly within an extension.
The manifest.json file:
{
"name": "My app",
"version": "1.0",
"manifest_version": 2,
"description": "Do thing.",
"permissions": [
"tabs", "http://*/",
"tabs", "https://*/"
],
"content_scripts": [
{
"matches": ["https://www.facebook.com/*"],
"js": ["myapp.js"],
"run_at": "document_end"
}
]
}
and the myapp.js file:
document.getElementById("rightCol").style.display="none";
However, the code does not seem to be having any effect.