cd /news/ai-tools/why-most-ai-chrome-extensions-ask-fo… · home › topics › ai-tools › article
[ARTICLE · art-177975] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Why Most AI Chrome Extensions Ask for Too Many Permissions — and How I Built a 25 KB activeTab-Only Clipper

A developer built ClipForAI, an open-source Chrome Manifest V3 extension (~25 KB zipped) that clips conversations from Claude, ChatGPT, and Gemini using only activeTab, scripting, and storage permissions instead of <all_urls>. The extension injects a local Markdown extractor on click and uses a four-layer resilient extraction cascade to survive frequent DOM changes in the three web apps. The developer contrasted this with the official Claude browser extension, which discloses access to browsing history, page contents, mouse position, and keystrokes because it operates as an autonomous browser agent.

recommendation

Scope browser extensions to activeTab and scripting instead of <all_urls>, and extract page content with a layered selector cascade that strips interactive elements before converting to Markdown.

more in playbook: Designing agent systems
by read3 min views8 publishedNov 29, 2026

When the official Claude browser extension rolled out, one detail jumped out to developers inspecting its store listing: because it acts as an autonomous browser agent that clicks and types across websites, it discloses access to browsing history, page contents across sites, mouse position, and keystroke activity.

That tradeoff makes complete sense if you genuinely want an autonomous agent navigating your browser for you.

But when I looked at what I actually do 90% of the time with Claude, ChatGPT, and Gemini in Chrome, I didn't want an autonomous agent at all. I only needed three boring, everyday things:

.md or PDF locally None of those three workflows requires <all_urls>, history, or a remote backend.

So I built ClipForAI—an open-source, zero-dependency Chrome MV3 extension (~25 KB zipped) designed around strict minimal permissions. Here are the two engineering choices that made it work cleanly.

activeTab + scripting Instead of <all_urls> Most "AI sidebar" and "web clipper" extensions declare <all_urls> or https://*/* in content_scripts. That means their JavaScript loads on every single tab you open—banking dashboards, internal admin panels, private docs—whether you ever click the extension or not.

In Manifest V3, Chrome already gives us a much safer primitive: activeTab.

Here is the entire permissions block of extension/manifest.json:

{
  "manifest_version": 3,
  "permissions": [
    "activeTab",
    "scripting",
    "storage"
  ],
  "content_scripts": [
    {
      "matches": [
        "https://claude.ai/*",
        "https://chatgpt.com/*",
        "https://gemini.google.com/*"
      ],
      "js": [
        "lib/prompts.js",
        "lib/markdown.js",
        "lib/store.js",
        "content/ai-bridge.js"
      ],
      "run_at": "document_idle"
    }
  ]
}

How this behaves in practice:

chrome.scripting.executeScript injects the local Markdown extractor into claude.ai, chatgpt.com, and gemini.google.com`` chrome.storage.local folders, insert clipped Markdown into the composer, and export the active conversation to If you want to inspect the exact permission comparison between autonomous AI browser agents and on-click activeTab tools, I documented the full breakdown here: Official Claude Chrome Extension Privacy & Permission Audit.

Anyone who has built a browser extension for ChatGPT, Claude, or Gemini knows the real maintenance headache: all three web apps change their DOM markup constantly.

Earlier this week, testing our local conversation exporter on live ChatGPT immediately exposed a classic failure mode: relying solely on [data-message-author-role] or <article> wrappers broke on a subset of updated conversation views where inner .markdown containers were empty placeholders.

Instead of brittle single-selector scraping, extension/content/ai-bridge.js uses a 4-layer resilient extraction cascade:

[data-message-author-role], Claude's user/assistant test IDs, Gemini's user-query / model-response custom elements).dedupeRoots) button, form, textarea, #clipforai-dock, .sr-only):

function extractNodeMarkdown(node) {
  if (!node) return "";
  const clone = node.cloneNode(true);
  clone
    .querySelectorAll(
      "button, [role='button'], form, textarea, [contenteditable='true'], .sr-only, [aria-hidden='true'], #clipforai-dock, #clipforai-toast"
    )
    .forEach((el) => el.remove());
  return md.cleanBlankLines(md.domNodeToMarkdown(clone, { baseUrl: location.href }));
}

<main>, infer User vs Assistant from attributes/class hints, and preserve fenced code blocks, tables, and lists. And when inserting clipped Markdown back into ProseMirror (Claude / ChatGPT) or Quill (Gemini), we fall back cleanly across document.execCommand("insertText"), InputEvent, and clipboard copy so a frontend refactor never loses your clipped notes.

While the extension finishes Chrome Web Store review, I also published the exact same client-side HTML-to-Markdown engine as a standalone, zero-upload browser tool—useful when you just want to clean up messy docs or rich text and check token counts before pasting into an LLM:

If you audit Chrome extensions before installing them—or have hit weird DOM quirks on Claude, ChatGPT, or Gemini—I'd love to hear what edge cases you've run into in the comments.

── more in #ai-tools 4 stories · sorted by recency
── more on @clipforai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/why-most-ai-chrome-e…] indexed:0 read:3min 2026-11-29 · —