I think you can get that granular in the manual/text based rules edit of uBO in settings, but I stopped looking into it / considering switching fully at that point (I'd always used it in simple mode in addition to uMatrix, just to block cosmetic DOM stuff that uMatrix doesn't do) since I need it to be far easier and quicker than that, as it is jn uMatrix.
So switching to nuTensor (a light-touch security/necessary FF updates only sort of fork) has been on my to-do list.
* * 1p-script block
* * 3p block
* * 3p-frame block
* * 3p-script block
* * image block
* * inline-script block
CSS, media can be blocked if it has extension:
*.css
*.webm
*.mp4
*.mp3
*.aac
I don't like gifs, so I used to block it through *.gif, which I'm not sure if umatrix can do.
In uMatrix that's one click in the appropriate column per domain's row, in the toolbar drop-down.
My uMatrix default is all cookies blocked; third-party media, scripts, XHR, frames, other blocked. Of course I often then have to allow some third-party script, and I can do so in one click without also allowing XHR or frames to/from that domain.
uBO doesn't allow that (in the toolbar UI, 'advanced'/'more' mode), because it's missing the columns from the 'matrix', so you either allow/block a domain wholesale.