You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
so95 598e142c85
re-fix (#4584)
9 mesi fa
..
assets chrome extensions (#4308) 10 mesi fa
icons chrome extensions (#4308) 10 mesi fa
styles chrome extensions (#4308) 10 mesi fa
README.md re-fix (#4584) 9 mesi fa
background.js chrome extensions (#4308) 10 mesi fa
content.js chrome extensions (#4308) 10 mesi fa
manifest.json chrome extensions (#4308) 10 mesi fa
options.html chrome extensions (#4308) 10 mesi fa
options.js chrome extensions (#4308) 10 mesi fa
popup.html chrome extensions (#4308) 10 mesi fa
popup.js chrome extensions (#4308) 10 mesi fa

README.md

Chrome Extension

chrome-extension/
│
├── manifest.json         # Main configuration file for the extension
├── popup.html          # Main user interface of the extension
├── popup.js            # Script for the main interface
├── background.js       # Background script for the extension
├── content.js          # Script to interact with web pages
├── styles/
│   └── popup.css       # CSS file for the popup
├── icons/
│   ├── icon16.png      # 16x16 pixel icon
│   ├── icon48.png      # 48x48 pixel icon
│   └── icon128.png     # 128x128 pixel icon
├── assets/
│   └── ...             # Directory for other assets (images, fonts, etc.)
├── scripts/
│   ├── utils.js        # File containing utility functions
│   └── api.js          # File containing API call logic
└── README.md           # Instructions for using and installing the extension

Installation

  1. Open chrome://extensions/.
  2. Enable Developer mode.
  3. Click Load unpacked and select the project directory.

    Features

  4. Interact with web pages.

  5. Run in the background to handle logic.

    Usage

  6. Click the extension icon in the toolbar.

  7. Follow the instructions in the interface.

    Additional Notes

  8. manifest.json: This file is crucial as it defines the extension’s metadata, permissions, and entry points.

  9. background.js: This script runs independently of any web page and can perform tasks such as listening for browser events, making network requests, and storing data.

  10. content.js: This script injects code into web pages to manipulate the DOM, modify styles, or communicate with the background script.

  11. popup.html/popup.js: These files create the popup that appears when the user clicks the extension icon. icons: These icons are used to represent the extension in the browser’s UI. More Detailed Explanation

  12. manifest.json: Specifies the extension’s name, version, permissions, and other details. It also defines the entry points for the background script, content scripts, and the popup.

  13. background.js: Handles tasks that need to run continuously, such as syncing data, listening for browser events, or controlling the extension’s behavior.

  14. content.js: Interacts directly with the web page’s DOM, allowing you to modify the content, style, or behavior of the page.

  15. popup.html/popup.js: Creates a user interface that allows users to interact with the extension. Other files: These files can contain additional scripts, styles, or assets that are used by the extension.