Yes it could.
Dedicated Extensions:
Add-ons like AI Content Shield (available for both Firefox and Chrome) strip out Google AI Overviews, AI Mode tabs, Bing/DuckDuckGo AI summaries, YouTube AI video summaries, and AI prompts across major platforms.
Similarly, Search Cleaner strips AI prompts from search engines.
uBlock Origin (Custom Filters): Rather than installing yet another extension, most power users simply add custom cosmetic filter lists (often shared on GitHub and Reddit) to uBlock Origin.
Since uBlock Origin already parses the DOM on every page load, adding CSS selectors to hide .ai-summary, [aria-label*="Ask AI"], or Google's AI Overview containers does the exact same job with zero extra overhead.
Browser-Level Kill Switches:
For the browser's own built-in AI buttons, Firefox (version 148+) added a single "Block AI enhancements" master toggle under Settings > AI Controls that removes sidebar chatbots, AI tab-group suggestions, and link-preview summaries in one click. (In Chrome, you still have to hunt down flags or registry policies.)
Any modern LLM can write a working WebExtension (manifest.json + a 40-line content.js using a MutationObserver) in seconds. It simply scans the page for , , or role="button" elements whose aria-label, title, or text matches keywords like "Ask AI", "Summarize with AI", or "Copilot", and sets display: none.
The only reason a generic AI-written script isn't 100% bulletproof across every site simultaneously is collateral damage:
False positives:
A naive keyword-matching script will accidentally hide the "Ask AI" tag on a Slashdot headline, a button on an AI news site, or a legitimate "Email" / "Detail" button if a developer wasn't careful with regex word boundaries (\bAI\b).
Obfuscated class names & Shadow DOM: Sites like Google, LinkedIn, and X constantly randomize CSS classes (class="x1i10hfl...") and hide widgets inside closed Shadow DOMs, meaning a universal heuristic script has to keep being updated—which is essentially turning it into an ad-blocker filter list anyway.