From 9d092c2c39f2d018455a4333fad417f6d500c360 Mon Sep 17 00:00:00 2001 From: dessant Date: Thu, 29 Apr 2021 22:00:05 +0300 Subject: [PATCH] fix: handle new reCAPTCHA host Closes #290. --- src/background/main.js | 7 ++++++- src/manifest.json | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/background/main.js b/src/background/main.js index 448cce2..ce9bc75 100644 --- a/src/background/main.js +++ b/src/background/main.js @@ -143,10 +143,14 @@ async function setChallengeLocale() { 'https://www.google.com/recaptcha/api2/bframe*', 'https://www.recaptcha.net/recaptcha/api2/anchor*', 'https://www.recaptcha.net/recaptcha/api2/bframe*', + 'https://recaptcha.net/recaptcha/api2/anchor*', + 'https://recaptcha.net/recaptcha/api2/bframe*', 'https://www.google.com/recaptcha/enterprise/anchor*', 'https://www.google.com/recaptcha/enterprise/bframe*', 'https://www.recaptcha.net/recaptcha/enterprise/anchor*', - 'https://www.recaptcha.net/recaptcha/enterprise/bframe*' + 'https://www.recaptcha.net/recaptcha/enterprise/bframe*', + 'https://recaptcha.net/recaptcha/enterprise/anchor*', + 'https://recaptcha.net/recaptcha/enterprise/bframe*' ], types: ['sub_frame'] }, @@ -180,6 +184,7 @@ function addBackgroundRequestLitener() { const urls = [ 'https://www.google.com/*', 'https://www.recaptcha.net/*', + 'https://recaptcha.net/*', 'https://api.wit.ai/*', 'https://speech.googleapis.com/*', 'https://*.speech-to-text.watson.cloud.ibm.com/*', diff --git a/src/manifest.json b/src/manifest.json index 6418073..c24857a 100755 --- a/src/manifest.json +++ b/src/manifest.json @@ -45,8 +45,10 @@ "matches": [ "https://www.google.com/recaptcha/api2/bframe*", "https://www.recaptcha.net/recaptcha/api2/bframe*", + "https://recaptcha.net/recaptcha/api2/bframe*", "https://www.google.com/recaptcha/enterprise/bframe*", - "https://www.recaptcha.net/recaptcha/enterprise/bframe*" + "https://www.recaptcha.net/recaptcha/enterprise/bframe*", + "https://recaptcha.net/recaptcha/enterprise/bframe*" ], "all_frames": true, "run_at": "document_idle",