message: Fix console error in `set-default-repositories-type-to-sources`
diff: import select from 'select-dom';
  import onetime from 'onetime';
  +import * as pageDetect from 'github-url-detection';
  import features from '.';
  import onProfileDropdownLoad from '../github-events/on-profile-dropdown-load';
  @@ -10,6 +11,11 @@ function addSourceTypeToLink(link: HTMLAnchorElement): void {
  link.search = String(search);
  }
  +async function profileDropdown(): Promise<void> {
  + await onProfileDropdownLoad();
  + addSourceTypeToLink(select('.header-nav-current-user ~ a[href$="tab=repositories"]')!); // "Your repositories" in header dropdown
  +}
  +
  async function init(): Promise<void> {
  const links = select.all([
  // Pre "Repository refresh" layout
  @@ -26,13 +32,11 @@ async function init(): Promise<void> {
  }
  }
  -async function profileDropdown(): Promise<void> {
  - await onProfileDropdownLoad();
  - addSourceTypeToLink(select('.header-nav-current-user ~ a[href$="tab=repositories"]')!); // "Your repositories" in header dropdown
  -}
  -
  void features.add(__filebasename, {
  - init: onetime(profileDropdown)
  -}, {
  init
  +}, {
  + exclude: [
  + pageDetect.isGist // "Your repositories" does not exist
  + ],
  + init: onetime(profileDropdown)
  });
  