I have a Chrome extension content script that I want to run on Trello boards. For now, it contains only:
console.log("Hello, world!");
When you open the Trello board page through an internal link, like from the My Boards page, the content script does not run. It does run after you refresh the page though.
My manifest file contains:
{
"manifest_version": 2,
"name": "Temp Ext",
"version": "1.0",
"content_scripts": [
{
"matches": ["*://trello.com/b/*"],
"js":["contentscript.js"]
}
]
}
Can anyone help me figure out why the script doesn't run at the time the page is initially loaded?
EDIT: Corrected question. Issue only occurred after following internal links, not any links.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…