chrome.tabs.query
: This API retrieves the active tab in the current window.chrome.scripting.executeScript
: Executes a script in the context of the active tab. In this case, it changes the background color of the webpage.
For a complete extension, you'll need to add icons that represent your extension in the Chrome toolbar. Create an images
folder in your project directory and add three icons with the following dimensions: