Extend translation capabilities to Mac system browsers

Source: Internet
Author: User
Tags extend custom name

Google Chrome can translate pages instantly. However, if you are used to safari, do not want to install Google Chrome, but also need to translate foreign pages in real time, then, see below:
Prerequisite: Open FirstSafari, tap Show-show Favorites Bar (or press the shortcut key directly?? B), the "Favorites Bar" appears under the Address bar.





method One:
1. Press the shortcut key? D, Add any Web page to your Favorites Bar first.
2. Right clickin your Favorites barjust add the page link button and click "Edit Address":



3, copy the following text, paste into the edit Address bar of the text box, click "Done":
    1. JavaScript: (function ()%7bvar%20s%20=%20document.createelement (' script ');%20s.type%20=%20 ' text/javascript ';% 20s.src%20=%20 ' Http://labs.microsofttranslator.com/bookmarklet/default.aspx?f=js&to=zh-chs '; 20document.body.insertbefore (s,%20document.body.firstchild);%7d) ()
Copy Code


      4.Right-clickin your Favorites barjust add the page link button, click "Rename ..." and rename to "translate" or other custom name:



5. Drag the "Translate" button towhere you think the "Favorites bar" is easy to operate, such asto the right of your Favorites bar, complete.



Method Two:

1. Open the following link:
    1. http://labs.microsofttranslator.com/bookmarklet/
Copy Code2. Click the drop-down menu to the right of the red box to set your target language (e.g.: English):




3. Drag and drop "translate" to the topto the right of your Favorites bar, complete:





open a Foreign Language Web page (the system automatically determines the original language), click "Translate", wait a few seconds, see the results!


Original:




Translation:


See the ways to add instant translation in IE:
    1. Http://bbs.pcbeta.com/viewthread-1544214-1-1.html
Copy Code
also attached:
Google Web translation url (Method Step 3):
    1. javascript:{d=document;b=d.body;o=d.createelement (' Scri ' + ' pt '); O.setattribute (' src ', ' http:/ /translate.google.cn/translate_a/element.js?cb=googletranslateelementinit '); O.setattribute (' type ', ' text/ JavaScript '); B.appendchild (o); V=b.insertbefore (d.createelement (' div '), b.firstchild); V.id= ' Google_translate_ Element '; v.style.display= ' None ';p =d.createelement (' Scri ' + ' pt ');p. text= ' Function%20googletranslateelementinit () {new%20google.translate.translateelement ({pagelanguage:%22%22},%22google_translate_element%22);} '; P.setattribute (' type ', ' text/javascript '); B.appendchild (P);} void%200
Copy Codeyoudao Web page translation url (method one step 3):
    1. Javascript:%20void (function ()%20%7bvar%20element%20=%20document.createelement (' script '); Element.id%20=%20 ' Outfox_seed_js '; element.charset%20=%20 ' Utf-8 ', Element.setattribute (' src ',%20 ' http://fanyi.youdao.com/web2/seed.js? ') %20+%20date.parse (New%20date ()));d ocument.body.appendChild (element);%7d) ())
Copy Code

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Extend translation capabilities to Mac system browsers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.