Page 1 of 1

How to write correct filters?

Posted: Sun Apr 15, 2018 6:09 pm
by Fiddo
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.

Re: How to write correct filters?

Posted: Sun Apr 15, 2018 8:05 pm
by LanikSJ

Re: How to write correct filters?

Posted: Sun Apr 15, 2018 9:42 pm
by Fiddo
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.

Re: How to write correct filters?

Posted: Mon Apr 16, 2018 7:09 am
by -Mark-
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.

Re: How to write correct filters?

Posted: Fri Jul 06, 2018 7:34 am
by archer
Thanks for the link, Mark!

Re: How to write correct filters?

Posted: Tue Jul 10, 2018 12:22 pm
by -Mark-
You can now refer to Wiki too.