Translates selected text into a `tooltip' via Google translate
![]() |
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. |
![[screenshot1]](https://github.com/trespassersW/UserScripts/raw/master/res/gimble.png)
![[screenshot2]](https://github.com/trespassersW/UserScripts/raw/master/res/tgshot.png)
Also, you can translate selected text using Greasemonkey menu:
Tools → Greasemonkey → User Script Commands → translate.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
[*] changes in GT API
[+] TTS buttons for source and translation
[!!] NOT working in Firefox 57 + Greasemonkey 4! Use Tampermonkey
[+] keep text formatting
[+] phonetic transcription
[+] previous translation button; option for left/right tooltip position;
[+] Word Definition is shown when source_language == target_language
javascript:postMessage('tgtooltip en|en','*') content.postMessage('tgtooltip en|en','*')