I do worry that these might be too general and will block other things?
To block the Doge icon at the top left of the main page I use
twitter.com##.r-lrsllp.r-lrvibr.r-1plcrui.r-bnwqim.r-dnmrzs.r-8kz0gk.r-16y2uox.r-yyyyoo.r-4qtqp9.r-1cvl2hr > g > path
in uBlock Origin. This was created by the Block Element picker.
It does leave a space which your rule doesn't do.
I do worry that these might be too general and will block other things?
To block the Doge icon at the top left of the main page I use
twitter.com##.r-lrsllp.r-lrvibr.r-1plcrui.r-bnwqim.r-dnmrzs.r-8kz0gk.r-16y2uox.r-yyyyoo.r-4qtqp9.r-1cvl2hr > g > path
in uBlock Origin. This was created by the Block Element picker.
It does leave a space which your rule doesn't do.