1window.addEventListener("load", () => { 2 3 if (document.querySelector("body.single-post") ?? false) { 4 5 /* 6 remove uncessary spans 7 */ 8 if (document.querySelector(".qmnews_story")) { 9 10 spanList = document.querySelectorAll(".qmnews_story span"); 11 12 for (let i = 0; i < spanList.length; i++) { 13 const element = spanList[i]; 14 15 if (element.parentNode.tagName == "SPAN") { 16 17 element.parentNode.parentNode.insertBefore(element.firstChild, element.parentNode); 18 19 } else { 20 21 while (element.firstChild) { 22 23 element.parentNode.insertBefore(element.firstChild, element); 24 } 25 } 26 27 element.remove(); 28 } 29 } 30 31 /* 32 remove borders from empty table cells 33 34 if(document.querySelector("table") ?? false) { 35 36 tableList = document.querySelectorAll("table"); 37 38 for (let i = 0; i < tableList.length; i++) { 39 const element = tableList[i]; 40 41 element.querySelectorAll("td").forEach(element => { 42 43 if (element.childNodes.length <= 0) { 44 45 element.style.border = ("none"); 46 } 47 }) 48 } 49 } 50 */ 51 } 52});
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.