Skip to content

Commit 5d8f2b9

Browse files
authored
Faster profile-gists-link (#2790)
1 parent fc864a3 commit 5d8f2b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ export const _isNotifications = [
144144
'https://github.com/notifications?all=1'
145145
];
146146

147-
export const isOrganizationProfile = (): boolean => select.exists('.orghead');
148-
export const _isOrganizationProfile = domBased;
147+
export const isOrganizationProfile = (): boolean => select.exists('meta[name="hovercard-subject-tag"][content^="organization"]');
148+
export const _isOrganizationProfile = domBased; // Safe for `nowAndOnAjaxedPages` because this element is in the <head>
149149

150150
export const isOrganizationDiscussion = (): boolean => /^orgs\/[^/]+\/teams\/[^/]+($|\/discussions)/.test(getCleanPathname());
151151
export const _isOrganizationDiscussion = [

0 commit comments

Comments
 (0)