This is a Chrome extension that summarizes LinkedIn posts . It adds a "Summarize" button to posts that are longer than 300 characters.
- Navigate to a LinkedIn post.
- If the post is longer than 300 characters, a "Summarize" button will appear.
- Click the "Summarize" button to get a summary of the post.
- Clone the repository to your local machine.
- Open Google Chrome and navigate to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory where you cloned the repository.
- The extension should now be available in your Chrome extensions.
- content.js: This is the main script that interacts with the LinkedIn page. It observes new posts and adds a "Summarize" button to posts that are longer than 300 characters. It also contains the query and summarize functions that interact with the Hugging Face API.
- manifest.json: This file describes the extension, its permissions, and what scripts it runs.
- popup.html: This is the HTML for the popup that appears when you click on the extension icon in the Chrome toolbar.
- popup.js: This script runs when the popup is opened. It can send messages to content.js.