Skip to content

ChatGPTPlus: A GitHub repository dedicated to improving the ChatGPT UI with CSS and JavaScript tweaks.

Notifications You must be signed in to change notification settings

minovap/ChatGPTPlus

Repository files navigation

ChatGPTPlus

Enhance your ChatGPT interface with ChatGPTPlus . This project is dedicated to improving the graphical user interface of ChatGPT using plain CSS and JavaScript, ensuring that the modifications do not interfere with the normal functionality of ChatGPT.

Features

  • UI Enhancements: Improve readability and usability without altering the core functionality of ChatGPT.
  • Custom CSS: Custom styles to enhance the visual appeal of ChatGPT.
  • Easy Integration: Easily integrate with ChatGPT via Tampermonkey.

Usage

Installation

  1. Install Tampermonkey on your browser.
  2. Create a new Tampermonkey script with the following code snippet:
// ==UserScript==
// @name         ChatGPTPlus
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Enhance the ChatGPT interface
// @author       User's GitHub or Author Name
// @match        *://chat.openai.com/*
// @grant        GM_addElement
// ==/UserScript==

(function() {
    'use strict';

    // Define the URLs for the local and fallback scripts
    const localScriptUrl = 'http://localhost:8080/bundle.js';
    const fallbackScriptUrl = 'https://minovap.github.io/ChatGPTPlus/bundle.js';

    // Attempt to load the local development script
    const localScriptTag = GM_addElement('script', { src: localScriptUrl });

    localScriptTag.addEventListener('load', () => {
        console.log('✅ Development script loaded successfully.');
    });

    localScriptTag.addEventListener('error', () => {
        // Load the production script as fallback
        const fallbackScriptTag = GM_addElement('script', { src: fallbackScriptUrl });
        fallbackScriptTag.addEventListener('load', () => {
            console.log('✅ Production script loaded successfully.');
        });
        fallbackScriptTag.addEventListener('error', () => {
            console.error('❌ Failed to load development and production scripts.');
        });
    });
})();

Development Setup

To set up this project for development, follow these steps:

  1. Clone the repository to your local machine.

  2. Navigate to the project directory and run the following command to install the dependencies:

    npm install
  3. To start the development server, run:

    npm run start

    This will serve your project at http://localhost:8080, and you should set the @resource URL in your Tampermonkey script to this address for local development.

Tampermonkey Settings for Development

When working in development mode, adjust your Tampermonkey script to load the local version of your enhancements:

  1. Change the @resource URL in your Tampermonkey script to point to your local server:
@resource REMOTE_JS http://localhost:8080/bundle.js
  1. In the Tampermonkey settings under Externals, set the Update Interval to “Always” to ensure Tampermonkey fetches the most recent version of your local script automatically.

About

ChatGPTPlus: A GitHub repository dedicated to improving the ChatGPT UI with CSS and JavaScript tweaks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published