// ==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/ // @downloadURL https://update.greasyfork.icu/scripts/574324/ERNIE-Image%20Free%20AI%20Image%20Generator%20%28No%20Login%29.user.js // @updateURL https://update.greasyfork.icu/scripts/574324/ERNIE-Image%20Free%20AI%20Image%20Generator%20%28No%20Login%29.meta.js // ==/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 }); }); })();