Created
February 26, 2023 11:05
-
-
Save mitchallen/e4fb2715480db780f2334a2701326aea to your computer and use it in GitHub Desktop.
Example background.js file for a Chrome Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("Background script loaded!"); | |
| chrome.browserAction.onClicked.addListener(function(tab) { | |
| // Do something when the extension button is clicked | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment