*/ function applyDarkTooltip(el) { el.style.background = '#160334'; el.style.color = '#ffffff'; el.style.border = '1px solid #8033DA'; el.style.boxShadow = '0 8px 20px rgba(0,0,0,0.6), 0 0 10px rgba(128,51,218,0.4)'; } // Observe DOM for dynamically inserted tooltips const observer = new MutationObserver((mutations) => { for (const m of mutations) { for (const node of m.addedNodes) { if ( node.nodeType === 1 && (node.matches('.qa-profile-tooltip') || node.getAttribute('role') === 'dialog') ) { applyDarkTooltip(node); } } } }); observer.observe(document.body, { childList: true, subtree: true }); })();