@dbvvmpg кста, не думал заимплементить bruh через browse-url-browser-function?
смотри что в 28ом news пишут
There is a new variable 'browse-url-default-handlers' and a user option 'browse-url-handlers' being alists with '(REGEXP-OR-PREDICATE FUNCTION)' entries allowing to define different browsing FUNCTIONs depending on the URL to be browsed. The variable is for default handlers provided by Emacs itself or external packages, the user option is for the user (and allows for overriding the default handlers).
Formerly, one could do the same by setting 'browse-url-browser-function' to such an alist. This usage is still supported but deprecated.