One-click switch between Chinese and English Google search results

Source: Internet
Author: User

I guess people who are used to Google search will often change the Chinese and English Google search results.

I think this is a waste of time, because I did this before.

In Chrome,

1. When the search result page is from google.cn (will at the beginning), you need to change the English search result: copy the keyword, paste the keyword to the address bar, and press enter (Chrome's default address bar is Google search in English)

2. When the search result page is in English, change the Chinese search result, copy the keyword, press g.cn in the address bar, paste the keyword to the search box on the page, and press Enter.

Today, I can't bear it anymore.Code... I should learn to be lazy, So I burst into the box and knocked on a piece of JavaScript to put the bookmarks column to achieve one-click switching.

Javascript: ADDR = string (window. location); If (ADDR. indexof ("Hl = EN") =-1) {If (ADDR. indexof ("Hl = ZH-CN") =-1) ADDR = ADDR + "& HL = ZH-CN"; else {ADDR = ADDR. replace ("google.cn", "Google.com"); ADDR = ADDR. replace ("Hl = ZH-CN", "Hl = EN")} else {ADDR = ADDR. replace ("Hl = EN", "Hl = ZH-CN")} window. location = ADDR

I won't talk about it in other browsers (maybe it's not just a click). In Chrome/Firefox, add a webpage or create a bookmark. The name can be anything you like. I wrote Google: en <-> ZH-CN, enter the above Code for the URL/address entry.

Update 2011.05.31

Now Google has switched to the English search result, as shown in:

Small changes and great convenience

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.