nl_tokens: Check if specified url has the same origin as the current document
pl_tokens: function ( url ) { function origin ( url ) { return [ url . scheme , url . <mask> , url . port ] . join ( '/' ) ; } if ( typeof url === 'string' ) { url = parseUrl ( url ) ; } return origin ( parseUrl ( ) ) === origin ( url ) ; }