How to write correct filters?

Discussion of topics related to ad blocking.

Moderator: EasyList authors

Post Reply
Fiddo
Site Member
Site Member
Posts: 12
Joined: Thu Jan 12, 2017 5:42 am
Reputation: 0

How to write correct filters?

Post by Fiddo » Sun Apr 15, 2018 6:09 pm

I always wondered if there was some real world tutorial on how to dig for the source of why something is not correctly working on a site, or why for example some site detects that you're using an adblocker. I tried searching all kind of topic on using the devtools etc... but is there really no video tutorial available on how to find out the specific problem on why site x detects that you're using an adblocker, and then writing the correct filter for fixing it ?

I truly believe a couple of those can convert a lot of filter beggers into actual filter writers, but so far no luck for finding a simple video tutorial.

User avatar
Lanik
Site Owner
Site Owner
Posts: 1452
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 25
Location: /dev/null

Post by Lanik » Sun Apr 15, 2018 8:05 pm

"If it ain't broke don't fix it."

Fiddo
Site Member
Site Member
Posts: 12
Joined: Thu Jan 12, 2017 5:42 am
Reputation: 0

Post by Fiddo » Sun Apr 15, 2018 9:42 pm

Thanks but I was specifically asking for some tutorial how people eventually end up with filters like these :

Code: Select all

website.com##script:inject(abort-on-property-write.js, uabInject)
How to dissect source code and work toward the reason of a specific problem.

-Mark-
Postaholic
Postaholic
Posts: 331
Joined: Tue Jul 05, 2016 7:46 pm
Reputation: 15

Post by -Mark- » Mon Apr 16, 2018 7:09 am

That's from uBlock Origin, scriptlets which are used to inject can be found here As for the reason, it's an experiment of trial and error.

Post Reply