update myscript

parse the hostname of the current url