1document.addEventListener('click', function(e) { 2 const button = e.target.closest('[data-save-button]'); 3 if (!button) return; 4 5 const ozonButtons = document.querySelectorAll('[class*="ozonpay-delivery-button-"]'); 6 7 for (let ozonButton of ozonButtons) { 8 const match = ozonButton.className.match(/ozonpay-delivery-button-(\d+)/); 9 if (match) { 10 const idNumeric = match[1]; 11 const deliveryElement = document.getElementById(`ID_DELIVERY_ID_${idNumeric}`); 12 if (deliveryElement && deliveryElement.checked) { 13 e.preventDefault(); 14 e.stopPropagation(); 15 e.stopImmediatePropagation(); 16 ozonButton.click(); 17 return; 18 } 19 } 20 } 21}, true);
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.