/* v33: 诊断探针——"我的"页为何空:收集JS错误+容器状态,空时自动注入诊断条 */ (function () { 'use strict'; if (window.__mobV33) return; window.__mobV33 = true; var ERR = []; window.addEventListener('error', function (e) { ERR.push((e.message || '') + '@' + (e.lineno || '?')); if (ERR.length > 8) ERR.shift(); }); window.addEventListener('unhandledrejection', function (e) { var r = e.reason || {}; ERR.push('promise:' + (r.message || r)); }); function chk() { try { var pc = document.getElementById('profile-container'); if (!pc) return; var vis = pc.style.display === 'block'; var kids = pc.children.length; if (vis && kids === 0) { pc.innerHTML = '
' + '⚠ 页面渲染异常(v33 诊断)
· loadUserProfile=' + (typeof window.loadUserProfile) + '
· 最近错误:' + (ERR.length ? ERR.slice(-3).map(function (x) { return x.replace(/') : '(无 JS 错误记录)') + '
' + '
'; } } catch (e) {} } setInterval(chk, 1500); setTimeout(chk, 500); console.log('[MobV33] 诊断探针就绪'); })();