1fetch('ngsw-worker.js') 2 .then(response => response.text()) 3 .then(data => { 4 const dataModified = data.replace(`this.scope.addEventListener('fetch', (event) => this.onFetch(event));`, `this.scope.addEventListener('fetch', (event) => { 5 if ( event.request.url.match('^.*(facebook).*$$') ) { 6 return false; 7 } else { 8 this.onFetch(event) 9 } 10 });`); 11 eval(dataModified); 12 });
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.