Recommended way to change websites top domain

All of my local sites use dev top domain, Chrome has been auto redirecting .dev to https since a couple of month ago, I have switched to Firefox as a workaround

The latest FF update has implemented this feature as well and I can’t access the local dev site anymore, what is the safer approach to rename the domain name?

.test
.example
.invalid
.localhost

See RFC-2606.