上傳檔案到「modules/story-summary」

This commit is contained in:
X
2026-02-15 09:59:07 +00:00
parent 8e3f34b5c1
commit 79f1af4857
4 changed files with 3440 additions and 234 deletions

View File

@@ -73,11 +73,11 @@
'陌生': 'trend-stranger', '投缘': 'trend-click', '亲密': 'trend-close', '交融': 'trend-merge'
};
const DEFAULT_FILTER_RULES = [
{ start: '<think>', end: '</think>' },
{ start: '<thinking>', end: '</thinking>' },
{ start: '```', end: '```' },
];
const DEFAULT_FILTER_RULES = [
{ start: '<think>', end: '</think>' },
{ start: '<thinking>', end: '</thinking>' },
{ start: '```', end: '```' },
];
// ═══════════════════════════════════════════════════════════════════════════
// State
@@ -1640,6 +1640,42 @@ const DEFAULT_FILTER_RULES = [
bindEvents();
// === EASTER EGG: 连续点击「调试」Tab 5 次切换新野兽派主题localStorage 持久化)===
(function () {
const STORAGE_KEY = 'xb-theme-alt';
const CSS_A = 'story-summary.css';
const CSS_B = 'story-summary-a.css';
const link = document.querySelector('link[rel="stylesheet"]');
if (!link) return;
// 启动时:根据持久化状态设置 CSS
if (localStorage.getItem(STORAGE_KEY) === '1') {
link.setAttribute('href', CSS_B);
}
// 点击计数器
let clickCount = 0, clickTimer = null;
const debugTab = document.querySelector('.settings-tab[data-tab="tab-debug"]');
if (!debugTab) return;
debugTab.addEventListener('click', function () {
clickCount++;
clearTimeout(clickTimer);
clickTimer = setTimeout(() => { clickCount = 0; }, 2000);
if (clickCount >= 5) {
clickCount = 0;
clearTimeout(clickTimer);
const isAlt = localStorage.getItem(STORAGE_KEY) === '1';
const next = isAlt ? CSS_A : CSS_B;
localStorage.setItem(STORAGE_KEY, isAlt ? '0' : '1');
link.setAttribute('href', next);
console.log(`[Easter Egg] Theme toggled → ${next}`);
}
});
})();
// === END EASTER EGG ===
// Notify parent
postMsg('FRAME_READY');
}