One-page collection of query the most convenient way: bookmarklet

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The general method of querying a single page is to enter the URL of the query page in the search engine. Recently found that Baidu's collection behavior is very strange, sometimes included in the index after the deletion, so very frequently query some of the pages of the collection, I am tired of finding, so decided to make a bookmarklet, specifically to check whether a Web page is included.

Seo9 knew very early that JavaScript could be run in the browser's address bar, but it was not until Doshdosh introduced the Bookmarklet method to search for competitors in Technorati, I learned that there was a bookmarklet way to apply this feature of modern browsers.

Simply put, a bookmarklet is a piece of JavaScript code in the Favorites folder, when you click on a page of the collection page, the collection page will get the current page information, such as: The selected text, the current page URL URLs. Then the information on the current page is processed, then access to a Web site, or simply to deal with the obtained data.

All we need to do is open the page you need to query, then click on our corresponding collection, the collection of the current page URL address, and then ran to Baidu to search that Web site, search is included, did not search to be confiscated, or received and was deleted (river crab?) )

The code for JavaScript is this: javascript:location.href= ' http://www.baidu.com/s?wd= ' +location.href

Location.href is to open the Web site in the browser, the front section of the "http://www.baidu.com/s?wd=" is fixed, this can be freely obtained, if you want to check in Google's collection, you can change this here to "http:// Www.google.com/search?q= ", the following location.href refers to the URL of the current page. It's that simple.

You can also drag the following two hyperlinks directly to your browser's toolbar, and then achieve a cool and dazzling bookmarklet:

Baidu included

Google included

We have to try, open to query the single page, such as: http://www.seo9.org, and then click on the Favorites folder inside the "Baidu included", Hey, come out!

Later to check whether a page is Baidu, Google included, is a click, how cool Ah, oh, if I think I said is not clear enough, can come to me, seo9 ready to help others.

Related Article

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.