// jquery.gohashurl.js
// copyright Jiangshui
// website http://yujiangshui.com
// contact yujiangshui@gmail.com
// https://github.com/yujiangshui/jquery.gourlhash.js
!function(a){a.extend({gohashurl:function(b){b=jQuery.extend({target:"",topfixed:"",offset:10,duration:200,easing:"linear"},b);var c=b.target||location.hash||"body",d=b.topfixed,e=a(c).length?a(c).offset().top:a("a[name="+c.substring(1)+"]").offset().top,f=a(d).height()||0,g=e-f-b.offset;0==b.duration&&(b.duration=1),a("body,html").animate({scrollTop:g},b.duration,b.easing)}})}(jQuery);
// jquery.gohashurl.js
// copyright Jiangshui
// website http://yujiangshui.com
// contact yujiangshui@gmail.com
// https://github.com/yujiangshui/jquery.gourlhash.js
;function(a){a.extend({gohashurl:function(b){b=jQuery.extend({target:"",topfixed:"",offset:10,duration:200,easing:"linear"},b);var c=b.target||location.hash||"body",d=b.topfixed,e=a(c).length?a(c).offset().top:a("a[name="+c.substring(1)+"]").offset().top,f=a(d).height()||0,g=e-f-b.offset;0==b.duration&&(b.duration=1),a("body,html").animate({scrollTop:g},b.duration,b.easing)}})}(jQuery);

Update jquery.gohashurl.min.js