Frame mogged into building a Chrome extension
Replacing 'Search with Google' with Claude
Scrolling the fever dream called Twitter, I came across this sentence:
"Clavicular ran into a frat leader at ASU and got brutally frame mogged by him"
(frame mogged: physically dominated by someone with a superior physique, apparently)
None of those words are in the bible. I could have Googled it. Instead, I did what any reasonable person would do and built a Chrome extension.
Housekeeping
Code is on GitHub if you want to skip the post entirely. Slightly shortened snippets below for brevity.
TL;DR
A Chrome extension that adds Ask Claude to the right-click menu. Select any text, right-click, and it opens Claude with enough context to maybe give a useful answer.

Three files
No build step, no npm install, no framework. Caveman. 🧌
The context menu entry gets created on install. When it's clicked, it builds a prompt with the selected text and sends it to Claude.
The actual prompt ended up being:
I selected "X". I would normally Google this. Tell me what I need to know.
It's not much – but it's definitely better than sending "GitHub" and getting "What's up with GitHub? What are you trying to do?" — which is exactly what happened on my first few attempts. 😭
The last piece is a content script that auto-submits once the page loads, because clicking Send manually is way too much effort.
Loading it
chrome://extensions → Developer mode → Load unpacked → point to root of project. Done.

Anyways
Studies show that readers who don't click the 🍺 button below, are 73% more likely to get frame mogged at their local ASU frat party. Don't let this happen to you.
Later