Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Tab Title

Chrome 扩展(Manifest V3),对指定网站自动用 AI 生成极短 tab title(≤15 中文字符),解决同 base URL 下不同业务难以区分的问题。

安装

  1. 打开 chrome://extensions/
  2. 开启右上角「开发者模式」
  3. 点击「加载已解压的扩展程序」,选择本目录

配置

右键扩展图标 → 选项,填写:

字段 说明
Provider OpenAI 兼容接口Anthropic 原生接口
Base URL OpenAI 兼容:https://api.openai.com/v1(或任意兼容地址);Anthropic:https://api.anthropic.com
API Key 对应服务的 key
Model gpt-4o-miniclaude-haiku-4-5-20251001
URL 模式 每行一个,如 *://*.notion.so/*(Chrome match pattern 语法)

使用

  • 访问命中 URL 模式的页面后,几秒内 tab title 自动改写
  • 点击扩展图标(popup)可查看当前 AI title,并执行:
    • 重新总结:忽略缓存,强制重新调 AI
    • 跳过本页:恢复原 title,后续不再改写此 URL

缓存

  • 按完整 URL 命中,30 天 TTL,最多 500 条
  • 配置页「清空所有缓存」可手动清除

架构

content.js → RENAME_REQUEST → background.js → AI API
                                    ↓
            APPLY_TITLE ← chrome.tabs.sendMessage
                ↓
        document.title = newTitle (MutationObserver 防覆盖)

About

Chrome extension: AI-powered tab title renaming

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages