Filter comments

Various discussions related to Adblock Plus development

Filter comments

Postby denmarks » Wed Oct 21, 2015 6:12 pm

I sometimes forget the purpose of a filter that I create. Is there a way to add a comment to a filter?

Example:
answers.yahoo.com##[id^="dmRosAdWrapper-"] comment here

I tried "!comment here" but it then leaves a blank area after removing the ad.
denmarks
 
Posts: 20
Joined: Wed Apr 04, 2007 7:40 pm

Re: Filter comments

Postby mapx » Wed Oct 21, 2015 6:20 pm

You could create your list, hosted on some server (dropbox, github, et). In that list you can use the comments.

see for example in easylist
Code: Select all
! Anti-Adblock
/ad-blocker.js
/adb_detector.


see also
viewtopic.php?p=121233#p121233
User avatar
mapx
 
Posts: 21947
Joined: Thu Jan 06, 2011 3:01 pm

Re: Filter comments

Postby denmarks » Wed Oct 21, 2015 6:52 pm

That would work but many are generated by the Element Hider add-on. It is too much trouble to have to move to another file after generating them.

If there is currently no such feature then Adblock should consider it.
denmarks
 
Posts: 20
Joined: Wed Apr 04, 2007 7:40 pm

Re: Filter comments

Postby lewisje » Fri Oct 23, 2015 3:04 am

For blocking and whitelisting rules, I can imagine a new option like $comment=<comment-with-no-comma>, but for hiding and hiding-whitelist rules it would be more difficult to extend the syntax to allow inline comments.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
lewisje
 
Posts: 2744
Joined: Mon Jun 14, 2010 12:07 pm


Return to Adblock Plus development

Who is online

Users browsing this forum: No registered users and 2 guests