We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
profile-gists-link
1 parent fc864a3 commit 5d8f2b9Copy full SHA for 5d8f2b9
source/index.ts
@@ -144,8 +144,8 @@ export const _isNotifications = [
144
'https://github.com/notifications?all=1'
145
];
146
147
-export const isOrganizationProfile = (): boolean => select.exists('.orghead');
148
-export const _isOrganizationProfile = domBased;
+export const isOrganizationProfile = (): boolean => select.exists('meta[name="hovercard-subject-tag"][content^="organization"]');
+export const _isOrganizationProfile = domBased; // Safe for `nowAndOnAjaxedPages` because this element is in the <head>
149
150
export const isOrganizationDiscussion = (): boolean => /^orgs\/[^/]+\/teams\/[^/]+($|\/discussions)/.test(getCleanPathname());
151
export const _isOrganizationDiscussion = [
0 commit comments