1document.addEventListener("DOMContentLoaded",function(){const toolbarToggle=document.querySelector(".wda-toolbar-toggle-link");const toolbar=document.querySelector("#wda-toolbar");const increaseTextBtn=document.querySelector(".wda-btn-resize-plus");const decreaseTextBtn=document.querySelector(".wda-btn-resize-minus");const grayscaleBtn=document.querySelector(".wda-btn-grayscale");const invertColorsBtn=document.querySelector(".wda-btn-invert");const underlineLinksBtn=document.querySelector(".wda-btn-links-underline");const highlightLinksBtn=document.querySelector(".wda-btn-links-highlight");const readableFontBtn=document.querySelector(".wda-btn-readable-font");const resetBtn=document.querySelector(".wda-btn-reset-font");let zoomLevel=1.0;function updateZoom(){Array.from(document.body.children).forEach(child=>{child.style.zoom=zoomLevel;});} 2function resetWidget(){zoomLevel=1;Array.from(document.body.children).forEach(child=>{child.style.zoom='';});document.body.classList.remove("wda-grayscale","wda-invert","wda-underline-links","wda-highlight-links","wda-readable-font");console.log("Widget settings reset.");} 3increaseTextBtn.addEventListener("click",function(){if(zoomLevel<1.59){zoomLevel+=0.2;updateZoom();} 4console.log(zoomLevel);});decreaseTextBtn.addEventListener("click",function(){if(zoomLevel>0.8){zoomLevel-=0.2;updateZoom();} 5console.log(zoomLevel);});toolbarToggle.addEventListener("click",function(){document.body.classList.toggle("wda-toolbar-open");});grayscaleBtn.addEventListener("click",function(){document.body.classList.toggle("wda-grayscale");});invertColorsBtn.addEventListener("click",function(){document.body.classList.toggle("wda-invert");});underlineLinksBtn.addEventListener("click",function(){document.body.classList.toggle("wda-underline-links");});highlightLinksBtn.addEventListener("click",function(){document.body.classList.toggle("wda-highlight-links");});readableFontBtn.addEventListener("click",function(){document.body.classList.toggle("wda-readable-font");});resetBtn.addEventListener("click",function(){resetWidget();});const style=document.createElement("style");style.innerHTML=` 6 .wda-grayscale { 7 filter: grayscale(100%); 8 } 9 .wda-invert { 10 filter: invert(100%); 11 } 12 .wda-underline-links a { 13 text-decoration: underline !important; 14 } 15 .wda-highlight-links a { 16 background-color: yellow !important; 17 color: black !important; 18 padding: 2px 4px; 19 } 20 .wda-readable-font { 21 font-family: Arial, sans-serif !important; 22 } 23 `;document.head.appendChild(style);});
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.