'use strict'; // Only the rednote instance transforms the shared HTML; state is served verbatim. module.exports = function rednoteView(html, admin = false) { const bootstrap = ''; if (admin) return html.replace('', bootstrap + '') .replace('', '<title>Rednote · '); return html.replace('</head>', bootstrap + '<link rel="stylesheet" href="css/rednote.css"></head>') .replace(/<button class="login-button login-wechat"[\s\S]*?<\/button>/, '') .replace('游客登陆</button>', '浏览器继续体验</button>') .replace('我们将采集您的面部影像,为您生成专属肌肤分析与状态管理方案。所有数据严格保密,仅用于本次检测分析。', '同意后将自动建立本机浏览器身份。我们将采集面部影像和基础档案,交由 Face⁺⁺ 分析,并在服务器保存照片和报告,供此浏览器查看最近5份报告。浏览器身份有效期30天,清除浏览器数据或更换设备后无法恢复。') .replace('<h1 class="policy-title">', '<p>本入口使用浏览器身份保存检测记录及照片,最近5份报告可由同一浏览器查看。Face⁺⁺提供检测分析,以下为其政策说明;清除本机身份后无法恢复原身份的历史报告。</p><h1 class="policy-title">'); };