(function () {
  if (document.getElementById('nebula-hello-badge')) {
    return;
  }

  const badge = document.createElement('div');
  badge.id = 'nebula-hello-badge';
  badge.textContent = 'Nebula extension loaded';
  badge.title = 'hello-nebula sample extension';
  document.documentElement.appendChild(badge);

  window.setTimeout(() => {
    badge.classList.add('nebula-hello-badge--hide');
  }, 3500);
})();
