List of AD urls in easylist

扶醉桌前 提交于 2021-02-08 03:59:24

问题


How Adblockplus uses https://easylist-downloads.adblockplus.org/easylist.txt to detect a url is an AD url? The regexes mentioned in this file contains '#' which does not seem to be a legit regex character. Can anyone point me to the code (https://github.com/adblockplus/adblockplus/tree/master/lib) where ADblock plus uses the list to categorize a url.


回答1:


Finally I found how AdblockPlus uses the easylist subscription rules to remove adverts from English webpages, including unwanted frames, images and objects. There are three kinds of rules namely -

  1. Blocking rules - Set of rules that determine addresses that Adblock Plus should block
  2. Exception rules - Exception rules are built the same as blocking rules, they define which addresses should be allowed even if matching blocking rules exists.
  3. Element hiding - Used to hide DOM elements on the page that are potential ADs. These rules are valid CSS selectors.

If anyone is planning to use / customize ADBlockPlus plugin then these set of rules will come handy because it covers most of the known advert urls till date.



来源:https://stackoverflow.com/questions/27334461/list-of-ad-urls-in-easylist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!