Adblock-alike script for videoplayers [closed]

I’ve got an html, which takes videoplayers from some sources. But these videoplayers use ads, which I only can block with adblock extension. So… Is there any solution to create an adblock-like JS or Tampermonkey script to block every video ad on my HTML page? (I don’t know filters I could use)

Tried asking chatGPT with DAN model – it only tells me to create an extension or use DNS server, but I only need script and nothing more.