explaingit

wong2/chatgpt-google-extension

13,094TypeScriptAudience · generalComplexity · 2/5Setup · moderate

TLDR

A browser extension that shows ChatGPT answers alongside Google and nine other search engines on the same page, no longer maintained since February 2023.

Mindmap

mindmap
  root((ChatGPT for Google))
    What it does
      AI answers in search
      Side-by-side display
    Supported engines
      Google and Bing
      DuckDuckGo and Brave
      Eight more engines
    Setup
      Chrome and Firefox
      API key or Plus account
    Project status
      Unmaintained 2023
      Author moved to ChatHub
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

See ChatGPT answers next to Google search results without switching tabs or opening a separate window.

USE CASE 2

Use your OpenAI API key or ChatGPT Plus account to get AI answers while searching across ten supported search engines.

USE CASE 3

Study the TypeScript source code as a reference for building your own browser extension that injects content into search results pages.

Tech stack

TypeScriptnpm

Getting it running

Difficulty · moderate Time to first run · 30min

Project unmaintained since February 2023, requires an OpenAI API key or active ChatGPT Plus account to function.

In plain English

ChatGPT for Google was a browser extension that showed ChatGPT responses alongside results from Google and other search engines. When you searched for something, the extension would simultaneously query ChatGPT and display its answer in a panel next to the regular search results, so you could see the AI response without switching tabs or opening a separate tool. The extension worked with ten search engines beyond just Google, including Bing, DuckDuckGo, Baidu, Yahoo, Brave, Naver, Yandex, Kagi, and Searx. It supported both the official OpenAI API and ChatGPT Plus accounts. Responses were rendered with proper text formatting and code highlighting. Other options included dark mode, a copy-to-clipboard button, a custom trigger mode to control when ChatGPT would respond, and the ability to switch display language. Installations were available through both the Chrome Web Store and the Mozilla Add-on Store. For Brave browser users, there was a known quirk: a fingerprinting-protection setting needed to be disabled in Brave's shield settings for the extension to function. Opera users needed to explicitly enable search page access in the extension management page. The project is no longer active. As of February 2023, it was acquired and the repository has not been updated since. The original author moved on to a separate project called ChatHub. The source is written in TypeScript, built with npm, and produces separate output folders for Chromium-based browsers and Firefox.

Copy-paste prompts

Prompt 1
How do I build chatgpt-google-extension from TypeScript source using npm and load it as an unpacked extension in Chrome?
Prompt 2
Explain how chatgpt-google-extension injects its response panel into the Google search results page, which files handle the DOM injection?
Prompt 3
What changes would I make to chatgpt-google-extension to replace the OpenAI API call with a different AI provider?
Prompt 4
How do I package the chatgpt-google-extension for Firefox as a separate build output from the Chromium version?
Open on GitHub → Explain another repo

← wong2 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.