Example that could be turned into a button to view user's public ftp where initial page is "http://user.school.edu/":
javascript:(function( {
var h,i,t;
h=window.location.hostname;i=h.IndexOf('.school.edu');t=h.substring(0,i);
window.location.assign("ftp://ftp.school.edu/public/"+t
});
Help me refine this idea, please.