1(function() { 2 3 var cont = document.getElementById('HRgeAnnouncementWidgetDesktop'); 4 if(!cont) return; 5 6 var root = cont.attachShadow({ 7 mode: "open" 8 }); 9 10 fetch("https://widget.hr.ge/AnnouncementWidgetDesktop?feedId=676be28c7f383272d0e96e6a&widgetId=83222a22-bd77-4c75-aa7c-5cc0e7a931f4&announcementCount=20&language=ka&culture=ka-GE") 11 .then((d) => Promise.all([d.text(), Promise.resolve(d.status)])) 12 .then((d) => { 13 if (d[1] == 200) { 14 setInnerHTML(root, d[0]); 15 } 16 }).catch(); 17})(); 18 19function setInnerHTML(elm, html) { 20 elm.innerHTML = html; 21 22 Array.from(elm.querySelectorAll("script")).forEach((oldScriptEl) => { 23 const newScriptEl = document.createElement("script"); 24 25 Array.from(oldScriptEl.attributes).forEach((attr) => { 26 newScriptEl.setAttribute(attr.name, attr.value); 27 }); 28 29 const scriptText = document.createTextNode(oldScriptEl.innerHTML); 30 newScriptEl.appendChild(scriptText); 31 32 oldScriptEl.parentNode.replaceChild(newScriptEl, oldScriptEl); 33 }); 34}
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.