Advertisement Filtering Method and Device
First Claim
1. An advertisement filtering method, said method comprising:
- accessing a webpage by using a browser, acquiring a selector of an advertisement element of the webpage according to a domain name of the webpage, and adding a rule statement for hiding the advertisement element after the selector to generate a CSS style of a specific category;
injecting the CSS style of the specific category into the browser;
setting a cascading priority of the CSS style of the specific category to a highest cascading priority; and
cascading, by the browser, on the CSS styles according to an order of cascading priorities of the CSS styles to enable the CSS style of the specific category to take effect.
3 Assignments
0 Petitions
Accused Products
Abstract
An advertisement filtering method and device. The method comprises: access a web page by using a browser, acquire a selector of an advertisement element according to a domain name of the web page, and add a rule statement for hiding the advertisement element after the selector to generate a CSS style of a specific category (S10); inject the CSS style of the specific category into the browser (S11); set a cascading priority of the CSS style of the specific category to a highest cascading priority (S12); and the browser performs cascading on the CSS styles according to an order of the cascading priority of the CSS style to enable the CSS style of the specific category to take effect (S13). In this way, in a case in which an author uses a counter advertisement filtering method, an advertisement from the author can still be effectively filtered.
4 Citations
30 Claims
-
1. An advertisement filtering method, said method comprising:
-
accessing a webpage by using a browser, acquiring a selector of an advertisement element of the webpage according to a domain name of the webpage, and adding a rule statement for hiding the advertisement element after the selector to generate a CSS style of a specific category; injecting the CSS style of the specific category into the browser; setting a cascading priority of the CSS style of the specific category to a highest cascading priority; and cascading, by the browser, on the CSS styles according to an order of cascading priorities of the CSS styles to enable the CSS style of the specific category to take effect. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An advertisement filtering device, said device comprising:
-
a CSS style generation module configured to access a webpage by using a browser, acquire a selector of an advertisement element of the webpage according to a domain name of the webpage, and add a rule statement for hiding the advertisement element after the selector to generate a CSS style of a specific category; a CSS style injection module configured to inject the CSS style of the specific category generated by the CSS style generation module into the browser; a cascading priority setting module configured to set a cascading priority of the CSS style of the specific category generated by the CSS style generation module to a highest cascading priority; and a CSS style enabling module configured to cascade on the CSS styles according to an order of cascading priorities of the CSS styles to enable the CSS style of the specific category to take effect. - View Dependent Claims (10, 11, 12)
-
-
13. An advertisement filtering method, comprising:
-
injecting a CSS style of a specific category into a browser, said CSS style of the specific category comprising a selector that is same as a selector of an advertisement element on a webpage and a rule statement for hiding the advertisement element in the browser; setting a cascading priority of the CSS style of the specific category to a highest cascading priority; and cascading on the CSS styles according to an order of cascading priorities of the CSS styles to enable the CSS style of the specific category to take effect. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
-
20. A machine readable storage medium for storing computer-readable program code portions that, when executed by at least one processor, are configured to:
-
inject a CSS style of a specific category into a browser, said CSS style of the specific category comprising a selector that is same as a selector of an advertisement element on a webpage and a rule statement for hiding the advertisement element in the browser; set a cascading priority of the CSS style of the specific category to a highest cascading priority; and cascade on the CSS styles according to an order of cascading priorities of the CSS styles to enable the CSS style of the specific category to take effect. - View Dependent Claims (21, 22, 23, 24, 25)
-
-
26. A machine readable storage medium for storing computer-readable program code portions that, when executed by at least one processor, are configured to:
-
access a webpage by using a browser, acquiring a selector of an advertisement element of the webpage according to a domain name of the webpage, and adding a rule statement for hiding the advertisement element after the selector to generate a CSS style of a specific category; inject the CSS style of the specific category into the browser; set a cascading priority of the CSS style of the specific category to a highest cascading priority; and cascade, by the browser, on the CSS styles according to an order of cascading priorities of the CSS styles to enable the CSS style of the specific category to take effect. - View Dependent Claims (27, 28, 29, 30)
-
Specification