Removes the google.com/url and google.com/search redirection wrappers from links generated by AI Studio and Gemini. Allows direct access to external websites.
Description (Detailed):
This script improves your experience on Google AI Studio and Google Gemini by removing the tracking/redirection wrappers from external links.
When the AI provides a link, Google usually wraps it like this:
❌ https://www.google.com/url?sa=E&q=https://example.com
❌ https://www.google.com/search?q=https://example.com
This script instantly converts them to:
✅ https://example.com
aistudio.google.com and gemini.google.com.MutationObserver to clean links instantly as the AI streams the response text.The script scans for links containing google.com/url or google.com/search. It extracts the real destination from the parameters, verifies it is a valid URL (http/https), and replaces the link in the HTML.
Enjoy a seamless AI chat experience! 🤖✨