Skip to content

Commit a18db82

Browse files
authored
Add isUserSettings (#73)
1 parent 3a2fddf commit a18db82

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@ collect.set('isRepoMainSettings', [
377377
'https://github.com/sindresorhus/refined-github/settings',
378378
]);
379379

380+
export const isUserSettings = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname.startsWith('/settings/');
381+
collect.set('isUserSettings', [
382+
'https://github.com/settings/profile',
383+
'https://github.com/settings/replies',
384+
'https://github.com/settings/replies/88491/edit',
385+
]);
386+
380387
export const isRepliesSettings = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname.startsWith('/settings/replies');
381388
collect.set('isRepliesSettings', [
382389
'https://github.com/settings/replies',

0 commit comments

Comments
 (0)