I was being a bit defensive here, just in case that someone ads more buttons to the header. And the querySelectorAll with that filter is not that slow :)