Baidu Ads highlighting Chrome plugin (with source)

Source: Internet
Author: User

A preface

Baidu has recently been on the headlines, I believe Baidu poison people are disgusted with Baidu. Baidu himself dug so many pits, after all, still want to fill it. Domestic netizens to make and most frequent search or Baidu-based, and Baidu relies on this market share by his ad auction ranking big windfall, but put a lot of needy people to advance the fire pit.

This is the most prominent medical aspect.

Second, the basic user experience is discarded, for example, we search "software training" the first page of light ads accounted for more than half ... Really can't endure! and logo for ads on the lower right corner of a small promotion field, even the software industry people may not know is advertising, let alone ordinary users!

Good! There's a pain point! Baidu's ads can be highlighted to remind users to carefully click, so this plugin was born.

Two analysis of Baidu advertising

Baidu's search ads are divided into two types

1 single result identified in the "Promotion" field

2 result set identified in the "Promotion link" field

The above two should be the first user will be more easy to recruit a bit, because the user key must be based on his search keyword results, and search results will be highlighted in red keywords, it is easy to let users ignore the bottom of the promotion of two words,

The second, although there is no promotion of the word, but the advertising results with the background highlighting hints, although no eggs, but at least there are hints

It is also a bit of a conscience that ads will no longer appear after repeated searches for the same keyword 3-5 times. But TM has hair, who will always point ah ...

Three analysis and realization

After understanding the display form of Baidu advertising, the next analysis of its HTML

1 First look at the promotion of the HTML of the field, if it is the result of the ad div ID is a number named, so as long as you judge whether it is a number on the line

2 Promotion link AD HTML ad results will be included in the Content_left first level div only need to determine whether the text of the a tag under the div is equal to the "promotion link" and the ad div ID is a number

3 code How to implement already know code code on the line

//Advertising background color deepened functionChangebackgroundcolor () {varURL =Window.document.location.href; if(Url.indexof ("www.baidu.com") >0)     {         varSearchResult = $ ("#content_left"). Children ("div")); Searchresult.each (function(){             //Verify that the ad is the result (if the ad ID is a value of 3001)             if(typeof($( This). attr ("id") = = "Number") | | )             {                                                   //ads in the "Promotion" field                 vardiv = $ ( This); $( This). Find ("Font"). each (function(){                     varText =$ ( This). Find ("a"). text (); if(text== "Promotion") {div.css ("Background-color", "#FEC2C3") ; }                 })                          }Else if($( This). Children ("a"). Text () = = "Promotion link")             {                //ads in the "Promotion link" field$( This). CSS ("Csstext", "Background-color: #FEC2C3!important; "); }                      })     }      }

This is

4 Ads highlighting function is in the original removal of IFRAME ads added function, so this plug-in function is actually Baidu ads highlight + remove iframe ad iframe ads Everyone should be very common I was so sick of it that I thought I'd kill him.

The processing method is also very simple rough explosion, directly find the IFRAME Delete, do not consider accidental injury because the general site is not directly nested in the body of an IFRAME

Iv. Summary

Although can't change Baidu, but at least can reduce their friends by the pit of the chance, the plug-in to their family and friends installed in the critical time may really reduce the loss of Baidu This behavior (serious expression)

Plugin Development Reference article:http://www.cnblogs.com/mfryf/p/3701801.html

Plug-in Local installation:http://jingyan.baidu.com/article/e5c39bf56286ae39d6603374.html

plugin Download:http://pan.baidu.com/s/1jIFA78y (Non-Google plugin center)

If you think this tool is also helpful to you, it is generous to take it as long as you can help me to order a praise, for my pay to the point of return!

Baidu Ads highlighting Chrome plugin (with source)

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.