Page Summarizer
Page Summarizer is a Chrome extension that utilizes OpenAI's chat completions
API to summarize text from a web page. Just highlight the text you want to
summarize, click the extension icon, and get a concise summary.
Features
- Summarize the content of any web page
- Summarize the contents of selected text
- Fill in text with GPT
- Customize instructions to get the information you want
- Add persistent custom instructions for all summaries
- Uses the OpenAI conversations API
![Summarize a web page](https://github.com/sysread/page-summarizer/raw/main/docs/summarize-page.gif)
![Summarize selected text](https://github.com/sysread/page-summarizer/raw/main/docs/summarize-selection.gif)
Installation
Prerequisites
You'll need to have Google Chrome or a Chromium-based browser installed and an
API key from OpenAI. This might work on Firefox, but I took exactly zero
minutes ensuring my API calls were cross platform. It does work on Opera,
though.
Installation from the Chrome Web Store
Go here.
Installation from latest release
- Go to the Releases page of this repository.
- Download the latest
chrome-extension.zip
or firefox-extension.zip
based on your browser.
- Unzip the downloaded ZIP file.
- 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 unzipped the downloaded ZIP file.
- The extension icon should now appear in your Chrome toolbar.
- Right-click the extension icon and choose "Options", then enter your OpenAI API key and preferred model.
Manual Installation from repo
- Clone this repository to your local machine:
git clone https://github.com/sysread/page-summarizer.git
- 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 icon should now appear in your Chrome toolbar.
- Right-click the extension icon and choose "Options", then enter your OpenAI API key and preferred model.
Usage
Summarize the entire page
- Click the Page Summarizer extension icon
- Click "Summarize page"
Summarize selected text
- Select the text you wish to summarize
- Right click and choose "Summarize selection" in the context menu
Fill in text
- Click on the text area you want to fill in
- Right click and choose "Fill with text using GPT"
- In the dialog box that appears, explain what you want GPT to say
- Optionally check 'Include page contents?' if context may be needed
- Click "Submit"
Troubleshooting
- Make sure you've entered the correct OpenAI API key.
- Make sure your OpenAI account has sufficient API quota.
- Check the JavaScript console for any errors.
- Find the bugs in my code and submit a PR
Contributing
Pull requests are welcome! For major changes, please open an issue first to
discuss what you would like to change.