MCPcopy Index your code
hub / github.com/wong2/chatgpt-google-extension

github.com/wong2/chatgpt-google-extension @v1.17.0

repository ↗ · DeepWiki ↗ · release v1.17.0 ↗ · Ask this repo → · + Follow
74 symbols 165 edges 27 files 0 documented · 0% updated 23mo ago★ 13,073
README

ChatGPT for Google

GitHub Workflow Status Visitors Twitter Follow License

A browser extension to display ChatGPT response alongside Google (and other search engines) results

Install from Chrome Web Store

Install from Mozilla Add-on Store

Changelog

Supported Search Engines

Google, Baidu, Bing, DuckDuckGo, Brave, Yahoo, Naver, Yandex, Kagi, Searx

Screenshot

Screenshot

Features

  • Supports all popular search engines
  • Supports the official OpenAI API
  • Supports ChatGPT Plus
  • Markdown rendering
  • Code highlights
  • Dark mode
  • Provide feedback to improve ChatGPT
  • Copy to clipboard
  • Custom trigger mode
  • Switch languages

Troubleshooting

How to make it work in Brave

Screenshot

Disable "Prevent sites from fingerprinting me based on my language preferences" in brave://settings/shields

How to make it work in Opera

Screenshot

Enable "Allow access to search page results" in the extension management page

Build from source

  1. Clone the repo
  2. Install dependencies with npm
  3. npm run build
  4. Load build/chromium/ or build/firefox/ directory to your browser

Extension points exported contracts — how you extend this code

Provider (Interface)
(no doc) [4 implementers]
src/background/types.ts
GPT3ProviderConfig (Interface)
(no doc)
src/config.ts
PromotionResponse (Interface)
(no doc)
src/api.ts
Answer (Interface)
(no doc)
src/messaging.ts
SearchEngine (Interface)
(no doc)
src/content-script/search-engine-configs.ts
ConfigProps (Interface)
(no doc)
src/options/ProviderSelect.tsx
GenerateAnswerParams (Interface)
(no doc)
src/background/types.ts
ProviderConfigs (Interface)
(no doc)
src/config.ts

Core symbols most depended-on inside this repo

getUserConfig
called by 4
src/config.ts
updateUserConfig
called by 3
src/config.ts
getExtensionVersion
called by 3
src/utils.ts
getPossibleElementByQuerySelector
called by 3
src/content-script/utils.ts
request
called by 3
src/background/providers/chatgpt.ts
getChatGPTAccessToken
called by 3
src/background/providers/chatgpt.ts
zipFolder
called by 2
build.mjs
copyFiles
called by 2
build.mjs

Shape

Function 42
Interface 13
Method 11
Class 4
Enum 4

Languages

TypeScript100%

Modules by API surface

src/background/providers/chatgpt.ts12 symbols
src/config.ts10 symbols
src/background/providers/openai.ts6 symbols
build.mjs5 symbols
src/options/ProviderSelect.tsx4 symbols
src/content-script/utils.ts4 symbols
src/content-script/ChatGPTQuery.tsx4 symbols
src/background/types.ts3 symbols
src/api.ts3 symbols
src/utils.ts2 symbols
src/options/App.tsx2 symbols
src/content-script/search-engine-configs.ts2 symbols

Dependencies from manifests, versioned

@geist-ui/core2.3.8 · 1×
@primer/octicons-react17.9.0 · 1×
@types/fs-extra9.0.13 · 1×
@types/lodash-es4.17.6 · 1×
@types/uuid9.0.0 · 1×
@typescript-eslint/eslint-plugin5.47.0 · 1×
archiver5.3.1 · 1×
autoprefixer10.4.13 · 1×
chokidar-cli3.0.0 · 1×
dotenv16.0.3 · 1×

For agents

$ claude mcp add chatgpt-google-extension \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact