个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Floating "Ask AI" button that hands the visitor's question and your site URL to ChatGPT, Claude or Google AI Mode. No API, no server, no tracking.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗English | 日本語
A floating "Ask AI" button for any web page. The visitor types a question, picks ChatGPT, Claude or Google AI Mode, and that service opens in a new tab with the question and the address of your site already filled in. No AI API is called, and the widget itself stores and sends nothing.
One TypeScript source produces a single-file script (global AskAIButton), an npm ESM package and a thin WordPress plugin.
Documentation and a live demo: https://elephancube.github.io/askai-button/en/ (install, option reference, WordPress)
The text placed in the URL parameter of the chosen service is built from a template. The built-in English template is:
{question}
Please refer to the following URL to answer this question.
{site_url}
{question} is what the visitor typed. {site_url} is the root of the current origin unless you set siteUrl. The template, and the wording of every label, can be replaced through the options.
With a script tag, the file being on your own server (download askai-button.min.js from the releases or the documentation site):
<script src="askai-button.min.js" data-askai></script>
With a script tag, the file coming from a CDN (jsDelivr; unpkg serves the same file at https://unpkg.com/@elephancube/[email protected]/dist/askai-button.min.js):
<script src="https://cdn.jsdelivr.net/npm/@elephancube/[email protected]/dist/askai-button.min.js" data-askai defer></script>
With a CDN, the visitor's browser fetches the script from the CDN operator, a third party; the button itself still sends nothing. Hosting the file yourself avoids that request. Keep the exact version in the address: an address without a version, or with @latest, changes the script on your site whenever a release is published. Subresource Integrity and Content Security Policy are covered on the install page.
With npm (the package is published under the @elephancube scope; the project and the file are called askai-button):
npm install @elephancube/askai-button
import { init } from '@elephancube/askai-button';
init({
presets: ['What can I do on this site?', 'How much does it cost?'],
providers: ['chatgpt', 'claude'],
});
The button follows the page language (lang option, then <html lang>, then the browser language, then en). Japanese and English are built in. See examples/ for complete pages.
Install it from the WordPress.org plugin directory: Elephancube Ask AI Button. The source is in wordpress/elephancube-ask-ai-button/. It adds the button and a settings screen (Settings > Ask AI). Optionally, and off by default, it keeps monthly totals of how often the button and each AI service are used, in the database of the site itself; the question and anything about the visitor are never stored. Installation and details: see its readme.txt and the WordPress page of the documentation site.
localStorage.q URL parameters these services accept are not documented by them and may change or stop working at any time. Every URL template is configurable, and a service can be set to copy the text to the clipboard and open the service instead.packages/core/ - the library (TypeScript, no runtime dependencies). All front-end behaviour lives here.wordpress/elephancube-ask-ai-button/ - the WordPress plugin; it passes settings to the library.site/ - the documentation and demo site: Markdown pages in site/content/, built into site/dist/ by site/build.mjs.examples/ - plain HTML examples (run the build first).scripts/ - build helpers..github/workflows/ - CI (ci.yml) and the deployment of the site to GitHub Pages (pages.yml).npm install
npm test # unit tests (Vitest)
npm run typecheck
npm run build # builds the script, copies it into the plugin, builds the site
npm run build:site # builds the site only (into site/dist)
npm run site # builds everything, then serves the site locally
npm run serve:site # serves the site that is already built
npm run test:php # plugin tests, needs PHP
npm run i18n # regenerates plugin translation files
npm run zip:plugin # writes dist-plugin/elephancube-ask-ai-button-<version>.zip
See CONTRIBUTING.md. To report a security problem, see SECURITY.md.
wordpress/) is MIT licensed; see LICENSE.wordpress/elephancube-ask-ai-button/ is GPL-2.0-or-later; see its LICENSE.Copyright (c) 2026 Elephancube Inc. Free and open source; there is no paid version. Support is best effort.
ChatGPT, Claude and Google are trademarks of their respective owners. This project is not affiliated with or endorsed by them. No logos of these services are bundled.