ABP filter syntax page

Discussion on adblockplus.org website and translations
Post Reply
Anton
Posts: 1
Joined: Sun Nov 01, 2015 7:21 pm

ABP filter syntax page

Post by Anton »

English "Writing Adblock Plus filters" page at en/filters apparently has inaccurate information:
  • It says div class is blocked with ##div. ,but ABP uses ##.
  • It says div id is blocked with ##div# ,but ABP uses ###
This is very misleading.
User avatar
Gingerbread Man
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: ABP filter syntax page

Post by Gingerbread Man »

Specifying div as in the above examples only applies the filter to div elements. Omitting it applies the filter to all elements. In short, the examples given are technically correct, though specifying the element type is redundant most of the time.
Post Reply