nl_tokens: Determine if two URLs share the same origin .
pl_tokens: function urlsAreSameOrigin ( url1 , url2 ) { url1 = urlResolve ( url1 ) ; url2 = urlResolve ( url2 ) ; return ( url1 . protocol === url2 . protocol && url1 . host === url2 . <mask> ) ; }