This Chrome extension fetches content from a webpage when activated. Users can chat or ask questions related to the webpage content, as well as engage in general or casual chats. This README will guide you through the structure of the extension and explain the functionality of each file in the project.
- Installation
- Usage
- i. .env ii. app.py iii. background.js iv. content.json v. HTMLLoader.py vi. icon.png vii. manifest.json viii. popup.html ix. popup.js x. requirements.txt
- Demo screenshots
To install and use the extension, follow these steps:
1.Clone the repository to your local machine. 2.Navigate to chrome://extensions/ in your Chrome browser. 3.Enable "Developer mode" by toggling the switch in the top right corner. 4.Click on "Load unpacked" and select the extension folder.
- Click on the extension icon in the Chrome toolbar.
- A popup will appear where you can chat or ask questions related to the current webpage.
- The extension can handle both specific queries about the webpage and general/casual chats.
The .env file contains environment variables used by the extension.
The app file is a Python source file that includes the main application logic for handling chat interactions and processing user queries.
The background.js file is a JavaScript source file that runs in the background, handling events such as browser actions and messaging between different parts of the extension.
The content.js file is a JavaScript source file that interacts with the webpage content. It is injected into the webpage and can extract information that is then used by the extension.
The HTMLLoader.py file is a Python source file responsible for loading and processing HTML content from the webpages.
The icon.png file is the icon for the Chrome extension.
The manifest.json file is a JSON source file that defines the extension's properties, permissions, and entry points.
The popup.html file is an HTML file that defines the user interface of the extension's popup.
The popup.js file is a JavaScript source file that manages the interaction within the popup, handling user inputs and displaying responses.
The requirements.txt file lists the Python dependencies needed to run the extension's backend.
Here are some screenshots demonstrating the extension in action:
.png)
.png)
.png)