index.js
如果网址是,我想运行我的https://www.themoviedb.org/movie/<any-movie-id>
,但如果它有子路径,则不希望它运行https://www.themoviedb.org/movie/<any-movie-id>/<sub-path>
"content_scripts": [
{
"matches": ["https://*.themoviedb.org/movie/*", "https://*.themoviedb.org/tv/*"],
"js": ["src/index.js"],
"css": ["src/index.css"]
}
]
你可以使用
exclude_globs
并做这样的事情