1(function(){ 2 'use strict'; 3 function autofillProduct(){ 4 if ( !document.querySelector('body.single-product') ) return; 5 const titleElm = document.querySelector('.product_title'); 6 if ( !titleElm ) return; 7 const title = titleElm.innerText; 8 const input = document.querySelector('.wpcf7-hidden[name="viewed-product"]'); 9 if (!input) return; 10 input.value = title; 11 } 12 window.addEventListener("DOMContentLoaded", autofillProduct); 13})();
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.