Please don't, as explained in sibling comment it's not possible with DNS blocking.
AGH already supports adding AdGuard filters, but for obvious reasons it only applies domain based filters. Adding the MITM proxy would allow for processing of the cosmetic filters too.
More info: