fix: handle new reCAPTCHA host

Closes #290.
pull/321/head
dessant 3 years ago
parent 0bb08c8f60
commit 9d092c2c39

@ -143,10 +143,14 @@ async function setChallengeLocale() {
'https://www.google.com/recaptcha/api2/bframe*', 'https://www.google.com/recaptcha/api2/bframe*',
'https://www.recaptcha.net/recaptcha/api2/anchor*', 'https://www.recaptcha.net/recaptcha/api2/anchor*',
'https://www.recaptcha.net/recaptcha/api2/bframe*', '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/anchor*',
'https://www.google.com/recaptcha/enterprise/bframe*', 'https://www.google.com/recaptcha/enterprise/bframe*',
'https://www.recaptcha.net/recaptcha/enterprise/anchor*', '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'] types: ['sub_frame']
}, },
@ -180,6 +184,7 @@ function addBackgroundRequestLitener() {
const urls = [ const urls = [
'https://www.google.com/*', 'https://www.google.com/*',
'https://www.recaptcha.net/*', 'https://www.recaptcha.net/*',
'https://recaptcha.net/*',
'https://api.wit.ai/*', 'https://api.wit.ai/*',
'https://speech.googleapis.com/*', 'https://speech.googleapis.com/*',
'https://*.speech-to-text.watson.cloud.ibm.com/*', 'https://*.speech-to-text.watson.cloud.ibm.com/*',

@ -45,8 +45,10 @@
"matches": [ "matches": [
"https://www.google.com/recaptcha/api2/bframe*", "https://www.google.com/recaptcha/api2/bframe*",
"https://www.recaptcha.net/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.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, "all_frames": true,
"run_at": "document_idle", "run_at": "document_idle",

Loading…
Cancel
Save