Add auto hostname resolution for userscript