Greasy Fork is available in English.

Google select text translator

Translate any selected text into the language you wants with google translator

< Отзив за Google select text translator

Отзив: ОК - скриптът работи, но има бъгове

§
Публикуван на: 23.07.2021

Hi, toprapid.
Still facing an issue with "Enable real-time selection translating mode (Otherwise click an icon to translate)". Despite this option is turned on translator window appears only after hovering over the floating icon. :(
PS. Where could I donate to you? :)

§
Публикуван на: 24.07.2021

I've figured out the cause of the abovementioned issue.
It needs to correct the condition in line #1410, i.e., add “!”(exclamation sing):

...
if(!isTranslatorDisabledTemporarily){
   let ci=createTranslatorIcon();
   ci.style.top=(e.clientY+15)+"px";
...
§
Публикуван на: 25.07.2021

Also, if you want more accurate translation of the sentences, you need to change “client=t" into “client=gtx".

AlessandraEllisАвтор
§
Публикуван на: 31.07.2021
Also, if you want more accurate translation of the sentences, you need to change “client=t" into “client=gtx".

Thanks very much for your suggestion. It's so important for me.
I'll update this change to the script.
Thanks a lot.

AlessandraEllisАвтор
§
Публикуван на: 31.07.2021
I've figured out the cause of the abovementioned issue.
It needs to correct the condition in line #1410, i.e., add “!”(exclamation sing):
...
if(!isTranslatorDisabledTemporarily){
   let ci=createTranslatorIcon();
   ci.style.top=(e.clientY+15)+"px";
...

About this "Bug".
I know it, because I want it to be like this.
In realtime mode, when you select the text, the translation will be popup instantly. Sometimes, when you just want to copy the text, this feature becomes annoying. So I change it to hover the translator icon to display the translation.

Публикувайте отговор

Влезте, за да публикувате отговор.