Google Chromeのハイライトトランスレーター

Google Chromeを使用しているKhabrovitesは興味があるはずです:

FirefoxからChromeに移植する際、いくつかのプラグインの転送について質問がありましたが、chromeプラグインは構想段階にあります。 特に、小さなウィンドウで選択したフレーズを翻訳できる非公式のGoogle Translate Firefox拡張プラグインの類似物を見つける方法に興味がありました。

小さな解決策がありました-ブックマークレット。 テキストを選択して小冊子をクリックすると、新しい小さなポップアップウィンドウで翻訳取得できます。

以下のテキストをブックマークに追加します(残念ながら、リンクとして追加した場合、ブックマークを管理できず、コードとして追加する必要があります)。

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();







ポイントバイポイントの場合:

1.このコードを選択

2.ブックマークを作成し、このコードをURLに追加します。

チェック:テキストを選択し、ブックマークをクリックします。すべてが正しく完了すると、選択したテキストの翻訳を含むウィンドウが表示されます。



Promtの翻訳サービスを使用して、ワンクリックでページを翻訳することもできます。これには、次のブックマークレットを使用します。



Promt-General:

javascript:location.href="http://www.translate.ru/url/tran_url.asp?lang=ru&direction=er&template=General&cp1=NO&cp2=NO&psubmit2.x=41&psubmit2.y=14&url="+document.location.href







インターネットの約束:

javascript:location.href="http://www.translate.ru/url/tran_url.asp?lang=ru&direction=er&template=Internet&cp1=NO&cp2=NO&psubmit2.x=40&psubmit2.y=11&url="+document.location.href







Promtソフトウェア:

javascript:location.href="http://www.translate.ru/url/tran_url.asp?lang=ru&direction=er&template=Software&cp1=NO&cp2=NO&psubmit2.x=95&psubmit2.y=19&url="+document.location.href







オフトピック:jabber er@translate.jrudevels.orgが見つかりました-プロム翻訳者。 m.translate.ruと同様に、200文字以下で翻訳します



All Articles