Webpage advertisement filter method and device
暂无分享,去创建一个
The embodiment of the invention discloses a webpage advertisement filter method and device, and relates to the technical field of internet. The method includes the steps of determining resources to be loaded in source codes of a target webpage, determining whether the codes of the resources to be loaded comprise div labels with preset series or not, determining whether the div labels with the preset series comprise a labels and img labels or not if the codes of the resources to be loaded comprise the div labels with the preset series, and judging the resources to be loaded as advertisement resources without loading webpage elements in the resources to be loaded if the div labels with the preset series comprise the a labels and the img labels. By the application of the webpage advertisement filter method and device, advertisement elements in webpage advertisements are filtered out, background elements and elements in other chained relationships are filtered out, and the user experience effect is improved.