A Chrome extension that adds a button to reformat tweets using OpenAI's GPT-3.5 API.
- Adds a "Reformat" button to tweet input fields on Twitter.
- Reformats tweets using OpenAI's GPT-3.5 API in the user-defined style.
- Automatically inserts the reformatted text into the tweet input field.
- Allows users to save their desired text style for future use.
- Clone this repository.
- Open Chrome and go to
chrome://extensions/. - Enable Developer mode by toggling the switch in the top-right corner.
- Click "Load unpacked" and select the repository folder.
- The extension should now be added to your browser.
- Visit Twitter and navigate to a tweet input field.
- Click the "Reformat" button beneath the input field to reformat the text using the GPT-3.5 API.
- Optionally, right-click the extension icon and choose "Options" to set the desired text style.
background.js: Handles fetching thereformat-button.htmlcontent.content.js: Main script that adds the "Reformat" button and interacts with the GPT-3.5 API.manifest.json: Chrome extension manifest file.popup.html: HTML for the extension popup.popup.js: Script for saving the user-defined style.readInput.js: Function for getting the user's text from the input field.reformat-button.js: HTML template for the "Reformat" button.styles.css: Custom styles for the "Reformat" button.