I control my browser through Emacs, since it's a lot faster/saner especially when I have close to 1000 tabs.
https://github.com/atomontage/osa-chrome (macOS, has some extra features)
https://github.com/anticomputer/chrome.el (OS agnostic)
https://github.com/atomontage/osa-chrome (macOS, has some extra features)
https://github.com/anticomputer/chrome.el (OS agnostic)