A web extension is an unnecessary security risk. A userscript will do it just fine.
edit: one of my previous attempt: https://news.ycombinator.com/item?id=35229211
I actually have made it extensible, with closely coupled source of rules and domains; but then I lost it Edge forgot all my userscripts :(
replies(6):