Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register static content scripts only as needed #83

Merged
merged 1 commit into from
Nov 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ async function registerContentScript(config)
"matches": ["https://*/*", "http://*/*"],
"matchAboutBlank": true,
"allFrames": true,
"js": [{
"code": code
}],
"js": [
{file: "engine.js"},
{file: "content.js"},
{code: code}
],
"runAt": "document_start"
});

Expand Down
10 changes: 0 additions & 10 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@
"persistent": false
},

"content_scripts": [
{
"matches": ["https://*/*", "http://*/*"],
"match_about_blank": true,
"all_frames": true,
"js": ["engine.js", "content.js"],
"run_at": "document_start"
}
],

"browser_specific_settings": {
"gecko": {
"id": "referer-mod@9a5ba22d-c08f-494f-86c2-e9fd04a6a42c",
Expand Down