texpander-ai

AI-powered text expander with Gemini integration

Terá de instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

Terá de instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Terá de instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Terá de instalar uma extensão como Tampermonkey para instalar este script.

Terá de instalar uma extensão de gestão de scripts de utilizador para instalar este script.

(Já tenho um gestor de scripts de utilizador, deixe-me instalá-lo!)

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

(Já tenho um gestor de estilos de utilizador, deixe-me instalá-lo!)

Autor
quantavil
Instalações diárias
0
Total de instalações
5
Classificações
0 0 0
Versão
3.0.0
Criado
25/02/2026
Atualizado
25/02/2026
Tamanho
60 KB
Licença
MIT
Aplica-se a
Todos os sites

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.