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.
isProjects
1 parent 37b0777 commit d19aeb1Copy full SHA for d19aeb1
index.ts
@@ -182,6 +182,11 @@ collect.set('isProject', [
182
'https://github.com/sindresorhus/refined-github/projects/3',
183
]);
184
185
+export const isProjects = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'projects';
186
+collect.set('isProjects', [
187
+ 'https://github.com/sindresorhus/refined-github/projects',
188
+]);
189
+
190
export const isDiscussion = (url: URL | HTMLAnchorElement | Location = location): boolean => /^discussions\/\d+/.test(getRepo(url)?.path!);
191
collect.set('isDiscussion', [
192
'https://github.com/tophf/mpiv/discussions/50',
0 commit comments