ChatGPT Project Theme Automator [DEPRECATED]

[DEPRECATED] This script is no longer maintained. Please use "ChatGPT UX Customizer" instead.

// ==UserScript==
// @name         ChatGPT Project Theme Automator [DEPRECATED]
// @namespace    https://github.com/p65536
// @version      1.2.4 [DEPRECATED]
// @license      MIT
// @description  [DEPRECATED] This script is no longer maintained. Please use "ChatGPT UX Customizer" instead.
// @icon         https://chatgpt.com/favicon.ico
// @author       p65536
// @match        https://chatgpt.com/*
// @grant        none
// @noframes
// @run-at       document-idle
// ==/UserScript==

(function () {
  'use strict';

  // Prevent duplicate insertion
  if (document.getElementById('cpta-deprecation-dialog')) return;

  // Create <dialog>
  const dialog = document.createElement('dialog');
  dialog.id = 'cpta-deprecation-dialog';
  dialog.style = `
    top: 10%;
    left: 10%;
    padding: 24px;
    border: none;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    background: white;
    color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    line-height: 1.6;
    z-index: 99999;
  `;

  // Dialog content
  dialog.innerHTML = `
    <h2 style="margin-top: 0; font-size: 18px;">\"ChatGPT Project Theme Automator\" is no longer maintained</h2>
    <p>Please use the successor script:</p>
    <p><a href="https://greasyfork.org/ja/scripts/543703-chatgpt-ux-customizer" target="_blank" style="color: #1a73e8;">View the new script of ChatGPT version on Greasy Fork</a></p>
    <p><a href="https://greasyfork.org/ja/scripts/543704-gemini-ux-customizer" target="_blank" style="color: #1a73e8;">View the new script of Gemini version on Greasy Fork</a></p>
    <div style="text-align: right; margin-top: 24px;">
      <button id="cpta-dialog-close" style="
        padding: 6px 14px;
        font-size: 14px;
        background: #333;
        color: #fff;
        border: none;
        border-radius: 6px;
        cursor: pointer;
      ">Close</button>
    </div>
  `;

  document.body.appendChild(dialog);
  dialog.showModal();

  document.getElementById('cpta-dialog-close').onclick = () => dialog.close();
})();