trespassersW / translate.google tooltip

Published:

Version: 18.01.15+47dba78 updated

Summary: Translates selected text into a `tooltip' via Google translate

Groups:

Copyright: trespassersW

License: MIT


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.


https://github.com/trespassersW/UserScripts/raw/master/res/gmicon.png>✔    https://github.com/trespassersW/UserScripts/raw/master/res/tmicon.png>✓

screenshot

   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 https://en.wikipedia.org/wiki/Bookmarklet>bookmarlets --
  any → french::   javascript:postMessage('tgtooltip auto|fr','*')
  中国 → english::   javascript:postMessage('tgtooltip zh-CN|en','*')
either by the means of https://addons.mozilla.org/firefox/addon/custom-buttons>Custom buttons --
  русский → español :: content.postMessage('tgtooltip#ru/es','*')
Sample bookmarklets and custombuttons can be found https://rawgit.com/trespassersW/UserScripts/master/htm/customButt.htm>here


  • 18.01.15 [+] TTS buttons for source and translation
  • 17.12.31 [!!] NOT working in Firefox 57 + Greasemonkey 4! Use Tampermonkey
  • 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
    https://github.com/trespassersW/UserScripts/raw/master/res/gt_def.png>
    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
  • v2016.01.16.1 + alternative translation


Script uses Country flag   https://cdn.rawgit.com/trespassersW/UserScripts/master/Flags/index.html?gtrantoltip#>images   from Flags of all Countries


This script is a distant descendant of http://userscripts-mirror.org/users/20871>lazyttrick's http://userscripts-mirror.org/scripts/show/36898>Google Translator Tooltip


     https://openuserjs.org/users/trespassersW/scripts>more scripts by trespassersW

Rating: 3

5 Votes
-4