Block Specific Scripts?

I think it’d be cool to block some scripts and not others. Like on youtube for example I want to be able to watch the video but block all the other scripts on the page. Is this possible?