diff --git a/index.ts b/index.ts index a85c877b..50e6aec5 100644 --- a/index.ts +++ b/index.ts @@ -15,6 +15,8 @@ export const is404 = (): boolean => document.title === 'Page not found · GitHub export const is500 = (): boolean => document.title === 'Server Error · GitHub' || document.title === 'Unicorn! · GitHub' || document.title === '504 Gateway Time-out'; +export const isPasswordConfirmation = (): boolean => document.title === 'Confirm password' || document.title === 'Confirm access'; + export const isBlame = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('blame/')); collect.set('isBlame', [ 'https://github.com/sindresorhus/refined-github/blame/master/package.json',