From f74f2afb343bcac680231316ca0df0ff6127c0c8 Mon Sep 17 00:00:00 2001 From: yakov116 <16872793+yakov116@users.noreply.github.com> Date: Thu, 6 May 2021 10:00:49 -0400 Subject: [PATCH] Add `isPasswordConfirmation` --- index.ts | 2 ++ 1 file changed, 2 insertions(+) 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',