個人 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.