translate.google tooltip

Translates selected text into a `tooltip' via Google translate

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
trespassersW
今日安裝
0
安裝總數
5,619
評價
71 1 2
版本
19.09.16
建立日期
2015-04-18
更新日期
2019-09-16
尺寸
80.5 KB
授權條款
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.


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


    // @version 19.09.16 //* This is a descendant of lazyttrick's http://userscripts.org/scripts/show/36898.

  • 19.09.16 * tiny fix
  • 19.09.11 * encodeURIComponent( translated_txt )
  • 19.04.02 * TTS in detected language
  • 18.11.30 [*] changes in GT API
  • 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

    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