Chrome Extension That Translates Highlighted Text
Highlight text on any page, get an instant translation in a tooltip.
Build a Chrome extension called "Selection Translator" that translates highlighted text on any webpage. The extension should: (1) detect when the user highlights any text on a webpage using a content script, (2) show a small "Translate" icon next to the selection, (3) when clicked, display a tooltip showing the translated text in the user's chosen target language, (4) translate using the Google Translate free endpoint OR allow the user to paste their own DeepL API key, (5) provide an options page where the user chooses target language and translation provider. Save preferences to chrome.storage. Permissions: storage, activeTab. Host permissions: <all_urls> for the content script, plus the translation endpoints. Manifest V3.
What this extension does
Translates any highlighted text on any webpage to the user's chosen target language. The translation appears in a small tooltip near the selection. Supports 50+ languages.
How it works
A content script listens for selection events and injects a "Translate" icon near the selection. On click, the script sends the selected text to the translation endpoint and renders the result in a styled tooltip with shadow DOM isolation.
Permissions used: storage, activeTab
Host permissions: <all_urls>
Who builds this
For language learners, multilingual readers, researchers reading non-native sources, and anyone who routinely encounters foreign-language content while browsing.
How to build it in 3 minutes
- Sign in to PlugThis and open the chat input.
- Copy the prompt above and paste it into the chat.
- PlugThis generates the full Manifest V3 extension in 60-90 seconds.
- Download the zip, extract it, and load it via
chrome://extensionsdeveloper mode.
Related extensions
Chrome Extension That Summarizes Articles
Summarize any article on any site in 3 bullets, powered by your choice of AI model.
Chrome Extension That Defines Highlighted Words
Highlight any word, get an instant tooltip with definition, examples, and etymology.
Chrome Extension That Reads Webpages Aloud
Read any webpage aloud with natural-sounding voices. Speed control, position memory, free.
Build it now, free.
Paste the prompt above into PlugThis and ship your extension in 3 minutes.