Translate the entire Safari page into Chinese,

Source: Internet
Author: User

Step1
First of all we want to open a Safari web page, with Command + D shortcut to add bookmarks, choose to add to the "Favorites", named "translation" or anything else can.
<ignore_js_op>


Step2
This page will appear in the top of the Favorites bar, find the "translation" of the collection button and right-click, select Edit Address. Fill in the following code, you can choose one you like to add:

<ignore_js_op>
<ignore_js_op>

Youdao Translate to Chinese:

    1. Javascript:void (function () {var element = document.createelement (' script '); element.id = ' outfox_seed_js '; Element.charset = ' Utf-8 ', Element.setattribute (' src ', ' http://fanyi.youdao.com/web2/seed.js? ' + date.parse (new Date ( ));d ocument.body.appendChild (element);}) ())
Copy Code

Google Translate to Chinese:

    1. Javascript:var t= ((window.getselection&&window.getselection ()) | | (Document.getselection&&document.getselection ()) | | (Document.selection&&document.selection.createrange&&document.selection.createrange (). text)); var e= (document.charset| | Document.characterset), if (t!= ") {location.href= ' http://translate.google.com/?text= ' +t+ ' &hl=zh-CN& Langpair=auto|zh-cn&tbb=1&ie= ' +e;} else{location.href= ' http://translate.google.com/translate?u= ' +encodeuricomponent (location.href) + ' &HL=ZH-CN &langpair=auto|zh-cn&tbb=1&ie= ' +e;};
Copy Code

Step 3
This is done, casually open a Foreign language page, click on the "Translate" button in the Favorites bar, you can directly translate this page into Chinese!

Translate the entire Safari page into Chinese,

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.