GitHub - osman144/chatgpt-code-modal-extension: ⚙️ 🟩 ChatGPT modal code extension, this Chrome extension enhances the ChatGPT interface by adding a modal feature to code blocks

2 min read Original article ↗

ChatGPT Code Block Modal Extension

logo2

This Chrome extension enhances the ChatGPT interface by adding a modal feature to code blocks. It is designed to provide users with a more focused view of code snippets within ChatGPT's responses, allowing for better readability and interaction.

Features

  • Modal View: Clicking on "Open Modal" within any ChatGPT code block will open a modal with the code content for distraction-free reading.
  • Easy Navigation: Users can easily close the modal by clicking outside the modal area, returning to the ChatGPT conversation.
  • Enhanced Readability: Provides an expanded view of the code, ensuring that longer code blocks are easier to read and understand without leaving the chat interface.

Code Block

s2

Modal with Code

s1

Running this app

Prerequisites

  • Google Chrome browser.

Using the Extension

To download and use the extension from the Chrome Web Store:

  1. Visit the Chrome Web Store.

  2. Search for "ChatGPT Code Block Modal Extension".

  3. Click "Add to Chrome" to install the extension.

Running Locally

  1. Clone the repository:
git clone https://github.com/yourusername/chatgpt-codeblock-modal.git
cd chatgpt-codeblock-modal
  1. Open the Google Chrome browser and navigate to chrome://extensions/.

  2. Enable "Developer mode" at the top right corner.

  3. Click on the "Load unpacked" button.

  4. Select the directory where you cloned the project to load the extension.

Contributing

Your contributions are welcome. Please feel free to submit pull requests or create issues for bugs and feature requests.