1(function () 2{ 3 function applyUsernameColors() 4 { 5 document.querySelectorAll('.autoCompleteList li').forEach(function (item) 6 { 7 const colorElement = item.querySelector('.ColorUsernameAutoCompleteList'); 8 9 if (!colorElement) 10 { 11 return; 12 } 13 14 const color = colorElement.dataset.color; 15 16 if (color) 17 { 18 item.style.cursor = 'pointer'; 19 item.style.color = color; 20 } 21 }); 22 } 23 24 function init() 25 { 26 applyUsernameColors(); 27 28 const observer = new MutationObserver(function () 29 { 30 applyUsernameColors(); 31 }); 32 33 observer.observe(document.body, 34 { 35 childList: true, 36 subtree: true 37 }); 38 } 39 40 if (document.readyState === 'loading') 41 { 42 document.addEventListener('DOMContentLoaded', init, { once: true }); 43 } 44 else 45 { 46 init(); 47 } 48})();
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.