^!z::
clip = %clipboard% ;把网址复制到剪贴板
changdu := StrLen(clip)

StringGetPos, Var, clip, / ,R,
Var := changdu-Var
;MsgBox, %Var% %changdu%

StringTrimRight, Output1, clip, %Var%
Clipboard = %Output1%
send ^v ;粘贴到地址栏

;简单粗暴。:-)