You need to load it in your manifest.json, like this:
"content_scripts": [
{
"matches": ["http://*/*","https://*/*"],
"js": ["jquery-1.4.2.js", "extension.js"]
}
]
Related Contents:
- Chrome extension: accessing localStorage in content script
- Modify HTTP responses from a Chrome extension
- Custom protocol handler in chrome
- Port error: Could not establish connection. Receiving end does not exist. In Chromiume
- Is it possible to create a Chrome Extension for private distribution outside Chrome Web Store?
- How to avoid “Extension context invalidated” errors when messaging AFTER an Extension update?
- Any way to remove X button from chrome tabs?
- How to modify an extension from the Chrome Web Store? [closed]
- Obtaining Chrome Extension ID for development
- sending message to chrome extension from a web page
- chrome.storage.sync undefined?
- Read the version from manifest.json [duplicate]
- Chrome extension content script re-injection after upgrade or install
- Injecting iframe into page with restrictive Content Security Policy
- ReactJS chrome extension installed but not showing up
- Updating an extension button dynamically – inspiration required
- Error in launching Chrome Extension for a specific page
- Is it possible to require npm modules in a chrome extension ?
- Chrome says my extension’s manifest file is missing or unreadable
- Chrome extension login best practices
- Chrome sendrequest error: TypeError: Converting circular structure to JSON
- Is there a JavaScript / jQuery DOM change listener?
- How to wait until an element exists?
- Where does Chrome store extensions?
- Is it possible to hide extension resources in the Chrome web inspector network tab?
- Disable developer mode extensions pop up in Chrome
- Where to find extensions installed folder for Google Chrome on Mac?
- Checkbox Check Event Listener
- Chrome extension: How to save a file on disk
- How can I get the current tab URL for chrome extension?
- Difference between two element styles with Google Chrome
- How can a Chrome extension save many files to a user-specified directory?
- Google Chrome Extensions – Open New Tab when clicking a toolbar icon
- Replay HTTP POST in google chrome Developer
- Debug tampermonkey script
- Chrome extension compiled by Webpack throws `unsafe-eval` error
- How do I send an HTTP GET request from a Chrome extension?
- How to communicate between popup.js and background.js in chrome extension?
- Is it possible to develop Google Chrome extensions using node.js?
- Chrome Extension Manifest ‘Matches’
- Chrome Console SameSite Cookie Attribute Warning
- How to develop Chrome extension for Gmail?
- Copy to Clipboard in Chrome Extension
- What does “http://*/*”, “https://*/*” and “” mean in the context of Chrome extension’s permissions
- Using chrome extension apis in typescript
- How to listen for url change with Chrome Extension
- Get all keys from Chrome Storage
- Getting unique ClientID from chrome extension?
- What do impressions in the Chrome extension developer dashboard mean?
- Google Chrome Customize Developer Tools Theme / Color Schema