Greasy Fork is available in English.

texpander-ai

AI-powered text expander with Gemini integration

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey, Greasemonkey или Violentmonkey.

Для установки этого скрипта вам необходимо установить расширение, такое как Tampermonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Violentmonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Userscripts.

Чтобы установить этот скрипт, сначала вы должны установить расширение браузера, например Tampermonkey.

Чтобы установить этот скрипт, вы должны установить расширение — менеджер скриптов.

(у меня уже есть менеджер скриптов, дайте мне установить скрипт!)

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

(у меня уже есть менеджер стилей, дайте мне установить скрипт!)

Автор
quantavil
Установок в день
0
Всего установок
1
Оценки
0 0 0
Версия
3.0.0
Создано
25.02.2026
Обновлено
25.02.2026
Размер
56,8 КБ
Лицензия
MIT
Работает на
всех сайтах

Texpander AI

Texpander AI is a robust, Neo Zen-styled userscript that supercharges your typing experience across the web. It provides instant text expansion algorithms and integrates an AI model (Gemini 2.5 Flash Lite) for fast, context-aware text transformations like grammar fixing, summarizing, and expanding content.

This userscript is built with TypeScript and bundled using Vite.

Features

  • Text Expansion Palette (Alt + P): Define custom abbreviations (e.g., brb -> Be right back.) and trigger them globally.
  • AI Context Menu (Alt + G): Highlight text anywhere on the web, hit Alt+G, and instantly run AI prompts (Summarize, Fix Grammar, Make Formal) to manipulate your text. Supports custom API prompts.
  • Neo Zen UI: A beautifully clean, dark, and highly responsive user interface free of sluggish animations—engineered for immediate flow state.
  • Configurable Settings: Fully customize your AI preferences, API keys, and text expansion dictionary right in the browser.

Getting Started

Prerequisites

You will need a userscript manager installed in your browser:

Installation

Since this project is managed by Vite with the vite-plugin-monkey plugin, you can install the script locally while developing.

  1. Clone & Install Dependencies

    npm install
    
  2. Development Runs the Vite development server. Your userscript manager will typically pick up the local file, updating automatically as you make changes.

    npm run dev
    
  3. Build target Compile down to a single minified userscript file inside the dist/ directory.

    npm run build
    

Once built, you can drag and drop dist/texpander-ai.user.js into your userscript manager to install the production version of the extension.

Usage

  • Open the Text Expansion Palette: Alt + P
  • Open the AI Prompt Menu: Alt + G (Ideally, select some text before hitting this shortcut).

Adding your API Key: To use the AI text generation features, go to the settings panel (gear icon) in either menu and input your Google Gemini API Key.

Technology

  • TypeScript: Typed logic and configuration.
  • Vite & vite-plugin-monkey: Fast builds tailored specifically for userscript compilation and GM_* APIs.
  • Native Web Components: The UI renders directly into the DOM using pure vanilla JS and strictly scoped CSS for maximum compatibility avoiding heavy framework overhead scenarios.