chatshare上显示出激活码获取的渠道🐱❇️

在chatshare网站把相关激活码获取方式全部展开❇️,展示出目前可用渠道。如需使用高级的GPT5\4o等模型,可订阅库系统使用。订阅地址:https://afdian.com/a/warmo 🐱

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         chatshare上显示出激活码获取的渠道🐱❇️
// @namespace    https://afdian.com/a/warmo
// @version      1.12
// @description  在chatshare网站把相关激活码获取方式全部展开❇️,展示出目前可用渠道。如需使用高级的GPT5\4o等模型,可订阅库系统使用。订阅地址:https://afdian.com/a/warmo 🐱
// @author       @有事反馈微信:caicats
// @match        https://chatshare.biz/*
// @match        https://chatshare.me/*
// @match        https://chatshare.tv/*
// @match        https://chatshare.xyz/*
// @match        https://chatshare.cc/*
// @match        https://chatshare.online/*
// @match        https://chatshare.com/*
// @match        https://chatshare.top/*
// @match        https://**.chatshare.biz/*
// @match        https://**.chatshare.me/*
// @match        https://**.chatshare.tv/*
// @match        https://**.chatshare.xyz/*
// @match        https://**.chatshare.cc/*
// @match        https://**.chatshare.online/*
// @match        https://**.chatshare.com/*
// @match        https://**.chatshare.top/*
// @match        https://new.oaifree.com/**
// @match        https://share.github.cn.com/**
// @match        https://chatgpt.com/**
// @match        https://oai.253282.xyz/**
// @match        https://gpt.universalbus.cn/**
// @match        https://go.gptdsb.com/**
// @match        https://*.azs.ai/**
// @license      MIT
// @icon         https://t1.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&size=32&url=https://chatgpt.com
// ==/UserScript==

(function () {
    'use strict';

    document.addEventListener('DOMContentLoaded', () => {
        createFloatingMenu();
    });

    const observer = new MutationObserver(() => {
        if (!document.querySelector('#floating-menu')) {
            createFloatingMenu();
        }
    });

    observer.observe(document.body, { childList: true, subtree: true });

    function createFloatingMenu() {
        if (document.querySelector('#floating-menu')) return;

        const menuContainer = document.createElement('div');
        menuContainer.id = 'floating-menu';
        menuContainer.style.position = 'fixed';
        menuContainer.style.bottom = '80px';
        menuContainer.style.right = '15px';
        menuContainer.style.zIndex = '10000';
        menuContainer.style.display = 'flex';
        menuContainer.style.flexDirection = 'column';
        menuContainer.style.alignItems = 'center';
        menuContainer.style.gap = '10px';

        const tooltip = document.createElement('div');
        tooltip.id = 'tooltip';
        tooltip.style.position = 'fixed';
        tooltip.style.backgroundColor = 'rgba(0, 0, 0, 0.9)';
        tooltip.style.color = '#fff';
        tooltip.style.padding = '8px 12px';
        tooltip.style.borderRadius = '6px';
        tooltip.style.fontSize = '12px';
        tooltip.style.visibility = 'hidden';
        tooltip.style.zIndex = '10001';
        tooltip.style.pointerEvents = 'none';
        tooltip.style.maxWidth = '200px';
        tooltip.style.wordWrap = 'break-word';
        document.body.appendChild(tooltip);

        const mainButton = document.createElement('button');
        mainButton.id = 'main-button';
        mainButton.style.width = '40px';
        mainButton.style.height = '40px';
        mainButton.style.borderRadius = '50%';
        mainButton.style.border = 'none';
        mainButton.style.backgroundColor = '#FF69B4';
        mainButton.style.color = 'white';
        mainButton.style.cursor = 'pointer';
        mainButton.style.fontSize = '26px';
        mainButton.textContent = '+';

        let isExpanded = false;
        mainButton.addEventListener('click', () => {
            isExpanded = !isExpanded;
            toggleMenu(isExpanded, menuContainer);
        });
        addTooltip(mainButton, '展开功能列表');

        // 替换为跳转链接按钮
        const markdownButton = createMenuButton('🍑', '跳转到淘宝', () => {
            window.open('http://c8a.cn/jBCkq', '_blank');
        }, '#FFA500');
        addTooltip(markdownButton.querySelector('button'), '🍑 跳转到淘宝');

        const htmlButton = createMenuButton('🌐', '跳转到小红书', () => {
            window.open('http://c8a.cn/D2nDB', '_blank');
        }, '#FFA500');
        addTooltip(htmlButton.querySelector('button'), '🌐 跳转到小红书');

        const sponsorButton = createMenuButton('❤️', '使用教程和赞赏', () => {
            window.open('http://c8a.cn/KQLYD', '_blank');
        }, '#FF6347');
        addTooltip(sponsorButton.querySelector('button'), '❤️ 使用教程和赞赏');

        const shopButton = createMenuButton('🛒', '其他付费GPT库系统', () => {
            window.open('http://c8a.cn/Yr6Zd', '_blank');
        }, '#32CD32');
        addTooltip(shopButton.querySelector('button'), '🛒 其他付费GPT库系统');

        menuContainer.appendChild(mainButton);
        menuContainer.appendChild(markdownButton);
        menuContainer.appendChild(htmlButton);
        menuContainer.appendChild(sponsorButton);
        menuContainer.appendChild(shopButton);
        document.body.appendChild(menuContainer);

        toggleMenu(false, menuContainer);

        function addTooltip(element, text) {
            element.addEventListener('mouseenter', (event) => {
                tooltip.textContent = text;
                tooltip.style.visibility = 'visible';
                const rect = element.getBoundingClientRect();
                tooltip.style.left = `${rect.left - tooltip.offsetWidth - 10}px`;
                tooltip.style.top = `${rect.top + (rect.height / 2) - (tooltip.offsetHeight / 2)}px`;
            });

            element.addEventListener('mouseleave', () => {
                tooltip.style.visibility = 'hidden';
            });
        }
    }

    function createMenuButton(icon, text, onClick, bgColor) {
        const buttonContainer = document.createElement('div');
        buttonContainer.style.position = 'relative';

        const button = document.createElement('button');
        button.className = 'menu-button';
        button.style.width = '36px';
        button.style.height = '36px';
        button.style.borderRadius = '50%';
        button.style.border = 'none';
        button.style.backgroundColor = bgColor;
        button.style.color = 'white';
        button.style.cursor = 'pointer';
        button.textContent = icon;
        button.addEventListener('click', onClick);

        buttonContainer.appendChild(button);
        return buttonContainer;
    }

    function toggleMenu(expand, menuContainer) {
        const buttons = menuContainer.querySelectorAll('.menu-button');
        buttons.forEach(button => {
            button.style.display = expand ? 'block' : 'none';
        });
    }
})();