Greasy Fork

来自缓存

Greasy Fork is available in English.

ERNIE-Image 免费AI图片生成器(无需登录)

在任意网页中使用 ERNIE-Image 生成AI图片。免费使用,无需登录,支持海报、漫画、图文字生成等。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         ERNIE-Image Free AI Image Generator (No Login)
// @name:zh-CN   ERNIE-Image 免费AI图片生成器(无需登录)
// @namespace    https://ernie-image.app/
// @version      1.0.0
// @description  Generate AI images on any webpage using ERNIE-Image. Free to use, no login required. Supports posters, comics, text-rich images, and structured layouts.
// @description:zh-CN 在任意网页中使用 ERNIE-Image 生成AI图片。免费使用,无需登录,支持海报、漫画、图文字生成等。
// @author       ERNIE-Image
// @match        *://*/*
// @grant        GM_addStyle
// @grant        GM_openInTab
// @grant        GM_registerMenuCommand
// @license      MIT
// @homepage     https://ernie-image.app/
// @supportURL   https://ernie-image.app/
// ==/UserScript==

(function () {
    'use strict';

    // ===== 样式 =====
    GM_addStyle(`
        #ernie-image-btn {
            position: fixed;
            bottom: 80px;
            right: 20px;
            z-index: 999999;
            background: linear-gradient(135deg, #4F46E5, #9333EA);
            color: #fff;
            border: none;
            padding: 12px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        #ernie-image-btn:hover {
            opacity: 0.9;
        }
    `);

    // ===== 创建按钮 =====
    const btn = document.createElement('button');
    btn.id = 'ernie-image-btn';
    btn.innerText = '🎨 ERNIE-Image';

    document.body.appendChild(btn);

    // ===== 点击行为 =====
    btn.addEventListener('click', () => {
        GM_openInTab('https://ernie-image.app/', { active: true });
    });

    // ===== 右键菜单 =====
    GM_registerMenuCommand('Open ERNIE-Image', function () {
        GM_openInTab('https://ernie-image.app/', { active: true });
    });

})();