1document.addEventListener('emporiLoaded', () => { 2 const masterLang = document.documentElement.lang; 3 if (masterLang !== 'fr-fr') return; 4 5 const LABEL_TEXT = 'Vérifiez que vous n\u2019êtes pas un robot'; 6 const INPUT_TEXT = 'Veuillez saisir le texte affiché dans l\u2019image ci-dessous'; 7 const PLACEHOLDER_KEY = 'Empori.Plugin.Essentials.Controls.FormSelector'; 8 9 const nodes = document.querySelectorAll('.node-captcha'); 10 11 for (const node of nodes) { 12 const label = node.querySelector('.form-label-text'); 13 if (label) { 14 for (const child of label.childNodes) { 15 if (child.nodeType === Node.TEXT_NODE && child.textContent.includes(PLACEHOLDER_KEY)) { 16 child.textContent = child.textContent.replace(PLACEHOLDER_KEY, LABEL_TEXT); 17 } 18 } 19 } 20 21 const input = node.querySelector('input'); 22 if (input) { 23 if (input.getAttribute('placeholder') === PLACEHOLDER_KEY) { 24 input.setAttribute('placeholder', INPUT_TEXT); 25 } 26 if (input.getAttribute('aria-label') === PLACEHOLDER_KEY) { 27 input.setAttribute('aria-label', INPUT_TEXT); 28 } 29 } 30 } 31}); 32
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.