Convert the port after localhost to numbers
type localhost/ in your url bar to enable this extension. Afterwards type in the name of the port you want to be converted in to numbers.
For instance type: 'localhost/' and then, 'port' and the browser will redirect you to http://localhost:7678
When you just want to convert a port: 'localhost/' > space > `port [nametoconvert]`