There is an update for bantflags.
This is a feature update, that includes a separately downloadable script with compatibility for GreaseMonkey 4. This is kept separate from the current script since it requires JavaScript features from a much more recent version of the language and I see no reason to break backwards compatibility with the current script because the GM devs made stupid decisions while changing their API. You can find it here:
https://flags.plum.moe/bantflags.gm4.user.jsThis will receive updates along side regular bantflags.
If you're currently using TamperMonkey, I would highly recommend you migrate to ViolentMonkey or GreaseMonkey, since software freedom is important. ViolentMonkey supports either script, while you will need to pick the correct script depending on your GreaseMonkey version. The script will tell you if you have the wrong one installed.