Greasy Fork

Shined up real nice.

translate.google tooltip

Translates selected text into a `tooltip' via Google translate

After trying this script, you can ask a question about it, review it, or report it.
Advertisement
Author
trespassersW
Daily installs
3
Total installs
2,097
Ratings
39 0 0
Version
17.08.08
Created
Updated
License
MIT
Applies to
All sites

Author's Description


babelfish

Translate.google tooltip  

Select word or phrase with Alt  key pressed -
then hover over an icon below the selection.
Almost instantly you will see a tooltip with the translation.


firefox✔     chrome+tampermonkey
[screenshot1]

   Please look more closely at the picture below:
[screenshot2]

Also, you can translate selected text using Greasemonkey menu:
  ToolsGreasemonkeyUser Script Commandstranslate.google tooltip
or through bookmarlets --
  any → french::   javascript:postMessage('tgtooltip auto|fr','*')
  中国 → english::   javascript:postMessage('tgtooltip zh-CN|en','*')
either by the means of Custom buttons --
  русский → español :: content.postMessage('tgtooltip#ru/es','*')
Sample bookmarklets and custombuttons can be found here


  • 17.03.11 [+] keep text formatting
  • 16.10.26 [+] phonetic transcription
  • 16.09.01 [+] previous translation button; option for left/right tooltip position;
  • 16.08.16 [+] Word Definition is shown when source_language == target_language

    bookmarklet: javascript:postMessage('tgtooltip en|en','*')
    Custom button: content.postMessage('tgtooltip en|en','*')

  • v3.7.2 2015-04-20 * TTS: alt-select  text inside tooltip and [shift/ ctrl]-click  language icon below.
      tts tips 2015.10.31
  • v16.01.16.1 ++ alternative translation

Script uses Country flag   images   from Flags of all Countries
This script is a distant descendant of lazyttrick's Google Translator Tooltip

Cbutts Greasy dfn

Share