Chrome Extension - Create manifest.json file
Here's an example of a manifest.json file for a basic Chrome extension:
In this example, you'll need to replace the placeholder
values with your own extension details. Here's a breakdown of the key
components:
manifest_version: Specifies the version of the manifest file
format. Use 2 for Chrome extensions.
name: The name of your extension.
version: The version number of your extension.
description: A brief description of your extension.
icons: Specifies the icons for your extension in different
sizes.
permissions: Lists the permissions required by your
extension. In this example, it requests access to tabs.
background: Defines the background script for your
extension. In this case, it uses background.js and is not persistent.
browser_action: Defines the behavior of the extension's
browser action (icon in the toolbar) with a default icon and a popup HTML file.
content_scripts: Specifies the content scripts to be
injected into matching web pages.
web_accessible_resources: Lists the resources that are
accessible by web pages. In this example, it allows the styles.css file on https://www.example.com/*.
manifest_overrides: Overrides specific Chrome URLs. In this
case, it overrides the new tab page with a custom newtab.html file.
Remember to include the necessary files (such as background.js,
popup.html, content.js, etc.) and icons (icon16.png, icon48.png, icon128.png)
in the same directory as the manifest.json file.
Feel free to modify and expand this manifest.json file to
suit your specific extension's needs.