Note that this only works when using setAttribute() and removeAttribute() on the option elements, instead of option.selected = true/false, because the MutationObserver will only pick up changes in the serialized DOM. So if the script for the custom select uses the latter and doesn't trigger a change event, you're out of luck, unfortunately.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Note that this only works when using
setAttribute()
andremoveAttribute()
on the option elements, instead ofoption.selected = true/false
, because the MutationObserver will only pick up changes in the serialized DOM. So if the script for the custom select uses the latter and doesn't trigger a change event, you're out of luck, unfortunately.