Comments 16
при нажимании на закладку поп-ап спрашивает язык перевода (по-умолчанию — ru). это лишний клик
0
У меня получилось только сменить с en на ru, если знаешь как убрать, буду признателен. И поправлю в топике.
0
ru версия —
javascript:function x(){loc=location.href; lang='ru'; flag=true;text = ''; if (window.getSelection) { text= window.getSelection(); } else if (document.getSelection) { text = document.getSelection(); } else if (document.selection) { text = document.selection.createRange().text;}}function y(){if((text=='')){location='http://translate.google.ru/translate?u='%20+%20encodeURIComponent(loc)+'&sl=auto&tl='+lang;}} function z(){if ((text!='')){ var res=window.open('http://translate.google.ru/translate_t?text='+text+'&sl=auto&tl='+ lang ,'gTranslate_popup','left='+((window.screenX||window.screenLeft)+10)+',top='+((window.screenY||window.screenTop)+10)+',height=500px,width=950px,resizable=1,scrollbars=1');window.setTimeout(function(){ res.focus()},300)}} x(); y(); z();
и 2-я такая же, в начале ru на en поменять. можно ещё усовершенствовать, но некогда :)
javascript:function x(){loc=location.href; lang='ru'; flag=true;text = ''; if (window.getSelection) { text= window.getSelection(); } else if (document.getSelection) { text = document.getSelection(); } else if (document.selection) { text = document.selection.createRange().text;}}function y(){if((text=='')){location='http://translate.google.ru/translate?u='%20+%20encodeURIComponent(loc)+'&sl=auto&tl='+lang;}} function z(){if ((text!='')){ var res=window.open('http://translate.google.ru/translate_t?text='+text+'&sl=auto&tl='+ lang ,'gTranslate_popup','left='+((window.screenX||window.screenLeft)+10)+',top='+((window.screenY||window.screenTop)+10)+',height=500px,width=950px,resizable=1,scrollbars=1');window.setTimeout(function(){ res.focus()},300)}} x(); y(); z();
и 2-я такая же, в начале ru на en поменять. можно ещё усовершенствовать, но некогда :)
+1
лучше сделать 2 закладки с разными кодами — ru и en и повевить на них шорткаты. 1 шорткат быстрее 2 кликов :)
0
Оффтопик: джаббер гуглопереводчика
ru2en@bot.talk.google.com
en2ru@bot.talk.google.com
и в таком духе.
ru2en@bot.talk.google.com
en2ru@bot.talk.google.com
и в таком духе.
+2
Посмотрите эту программу translateclient.com На хабре уже были упоминания.
Сам пользуюсь и не нужно никаких плагинов.
Сам пользуюсь и не нужно никаких плагинов.
+5
Sign up to leave a comment.
Articles
Change theme settings
Переводчик выделенного текста для Google Chrome