var s = decodeURIComponent((new RegExp('[?|&]userid=([^&;]+?)(&|#|;|$)').exec(location.href || [''])[1].replace('/\+/g','%20'))||null);
console.log(s);
05-11 14:42