You need to load it in your manifest.json, like this:
"content_scripts": [
{
"matches": ["http://*/*","https://*/*"],
"js": ["jquery-1.4.2.js", "extension.js"]
}
]
More Related Contents:
- How to open the correct devtools console to see output from an extension script?
- Chrome extension content script re-injection after upgrade or install
- Access global js variables from js injected by a chrome extension
- Custom protocol handler in chrome
- Port error while changing chrome extension from manifest v1 to v2
- Injecting iframe into page with restrictive Content Security Policy
- Firefox extension .xpi file structure: description, contents, creation, and installation
- Chrome extension to read HTTP response
- Service worker registration failed. Chrome extension
- about chrome.tabs.executeScript( id,details, callback)
- Permission ” is unknown or URL pattern is malformed
- Registering a custom element from a chrome extension
- Google Chrome – Alphanumeric hashes to identify extensions
- Manifest v3 Resources must be listed in the web_accessible_resources
- How to inject javascript into Chrome DevTools itself
- chrome extension: how to send ‘keydown’ event to page’s input?
- How to modify an extension from the Chrome Web Store? [closed]
- How to migrate manifest version 2 to v3 for chrome extension?
- How to trigger click on a button
- CORS Chrome Extension with manifest version 2
- On page load event in Chrome extensions
- Upload a File in a Google Chrome Extension
- How do I log out of a chrome.identity oauth provider
- Chrome tabs query returning empty tab array
- cannot create item with duplicate context menu id in extension
- How to avoid “Extension context invalidated” errors when messaging AFTER an Extension update?
- Google Chrome Socket API in extensions
- chrome.commands keyboard shortcuts not working
- How to send message FROM native app TO Chrome extension?
- Chrome extension page action appearing outside of address bar