1if (isWebview) { 2 let link = document.createElement('link'); 3 link.type = 'text/css'; 4 link.rel = 'stylesheet'; 5 link.media = 'all'; 6 link.href = document.querySelectorAll('link[href$="bhstyles.css"]')[0].href.replace('bhstyles', 'webview-plp'); 7 8 let head = document.head; 9 head.appendChild(link); 10 11 document.body.classList.add('webview'); 12 13 document.querySelector('.page-wrapper').append(document.querySelector('.minicart-wrapper')); 14 document.querySelectorAll('.page-header')[0].style.display = 'none'; 15 16 removeElement('#skipToContent') 17 removeElement('.breadcrumbs-wrapper__fw'); 18 removeElement('.usp-wrapper__fw'); 19 removeElement('.nav-icon__wrapper'); 20 removeElement('.header.links'); 21 removeElement('.logo[title="Beer Hawk Ltd"]'); 22 removeElement('.logo-mobile'); 23 removeElement('.account-menu__wrapper'); 24 removeElement('.page-footer'); 25 removeElement('.page-title-wrapper.make__grid'); 26 27 waitForElm('.action.button.button--primary.tocart').then((elm) => { 28 var a2cButtons = document.querySelectorAll('.action.button.button--primary.tocart'); 29 a2cButtons.forEach(a2cButton => { 30 a2cButton.addEventListener('click', function () { 31 waitForElm('#BeerHawkPopup-Add-to-cart').then((elm) => { 32 elm.remove(); 33 }); 34 }) 35 }) 36 }) 37 38 waitForElm('#nosto-search-no-results').then((elm) => { 39 elm.remove(); 40 }); 41} 42
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.