guneysus
2/11/2015 - 10:32 PM

Bookmarklets

Bookmarklets

Or just add this as a bookmark

javascript:(function(){ window.open('http://0.0.0.0:' + window.prompt('For http://0.0.0.0: input a port number..','')); })();
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <title>Bookmarklets</title>
    </head>
    <body>
    <ul>
	<li>
     <a href="javascript:(function(){ window.open('http://0.0.0.0:' + window.prompt('For http://0.0.0.0: input a port number..','')); })();">http://0.0.0.0:PORT</a>
    For local developments, input a port number than opens the adress with a port
        </li>
	<li>
    <a href="javascript:(function(){ window.open('http://localhost:' + window.prompt('For http://localhost: input a port number..','')); })();">http://localhost:PORT</a>
    For local developments, input a port number than opens the adress with a port
        </li>
    </ul>
    </body>
</html>