Getting the web element for the blocked ad
Posted: Wed Feb 05, 2020 10:56 am
Hello everyone,,
I am working on a project where I need to identify the ads in a webpage and study them. I want to use ABP for effectively identifying the ads. But I noticed that ABP simply creates the CSS and passes it on to the browser.
From the source code:
In elemHide.js, apply() function:
Utils.styleService.loadAndRegisterSheet(styleURL, Ci.nsIStyleSheetService.USER_SHEET);
So I am not able to get a handle on the web element containing the advertisement.
Is there a way I can get a handle/reference to the web element for the ad itself? Any help will be appreciated.
Thanks.
I am working on a project where I need to identify the ads in a webpage and study them. I want to use ABP for effectively identifying the ads. But I noticed that ABP simply creates the CSS and passes it on to the browser.
From the source code:
In elemHide.js, apply() function:
Utils.styleService.loadAndRegisterSheet(styleURL, Ci.nsIStyleSheetService.USER_SHEET);
So I am not able to get a handle on the web element containing the advertisement.
Is there a way I can get a handle/reference to the web element for the ad itself? Any help will be appreciated.
Thanks.