function isThirdParty(url, mainDocumentEntity) {
  const entity = getEntity(url);
  if (!entity) return false;
  if (entity === mainDocumentEntity) return false;
  return true;
}
@param {string} url
@param {ThirdPartyEntity | undefined} mainDocumentEntity