Using uBlock Origin, how do I block a root site without blocking sub-pages?

I am getting really distracted by YouTube recently, but I still need access to YouTube videos. I inadvertently visit youtube.com, and I would like to block this page without blocking the whole site. Is there a uBlock filter that only works on the root page?


Solution 1:

Is there a [uBlock Origin] filter that only works on the root page?

Yes, use the document filter option:

||youtube.com^|$document