How do I write a custom content filter?

I want to make a custom filter for squadbusters.supercell.com, and plarium.com. Let’s start with two and I can have a template for others. They are full ads that appear on new tabs. Brave has these ads in the brave folder in programs. Thks

Delete the any text above the line separator below before posting


Description of the issue:

Exact URL of the website in question:

Screenshot of the ad as it appears in Brave:

Did the issue present with default Shields settings? (yes/no)

Does the site function as expected when Shields are turned off?

Does the ad appear when using a Private window as well? (yes/no)

What OS are you using when you see the ad?

Brave version (check About Brave):

Description of the issue: Various full screen ads appear randomly in new tabs. I have had ads for video games.

Exact URL of the website in question: Https://pad.chaingpt.org

**Screenshot of the ad as it appears in Brave:


This picture did not load as I expected.
Did the issue present with default Shields settings? (yes)

Does the site function as expected when Shields are turned off Yes the adds appear when shields are turn off.

Does the ad appear when using a Private window as well? (no)

What OS are you using when you see the ad? W 10 pro

Brave version (check About Brave ):116.118

Filters in Brave follow the same ad-block rules as ABP do — you can view those here: