Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,13 @@ collect.set('isRepoMainSettings', [
'https://github.com/sindresorhus/refined-github/settings',
]);

export const isUserSettings = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname.startsWith('/settings/');
collect.set('isUserSettings', [
'https://github.com/settings/profile',
'https://github.com/settings/replies',
'https://github.com/settings/replies/88491/edit',
Comment on lines +383 to +384
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'https://github.com/settings/replies',
'https://github.com/settings/replies/88491/edit',
...collect.get('isRepliesSettings') as string[],

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll include that in my other PR

]);

export const isRepliesSettings = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname.startsWith('/settings/replies');
collect.set('isRepliesSettings', [
'https://github.com/settings/replies',
Expand Down