上傳檔案到「modules/story-summary」
This commit is contained in:
@@ -1640,7 +1640,7 @@
|
||||
|
||||
bindEvents();
|
||||
|
||||
// === EASTER EGG: 连续点击「调试」Tab 5 次切换新野兽派主题(localStorage 持久化)===
|
||||
// === EASTER EGG: 连续点击标题「总结」5 次切换新野兽派主题(localStorage 持久化)===
|
||||
(function () {
|
||||
const STORAGE_KEY = 'xb-theme-alt';
|
||||
const CSS_A = 'story-summary.css';
|
||||
@@ -1655,10 +1655,11 @@
|
||||
|
||||
// 点击计数器
|
||||
let clickCount = 0, clickTimer = null;
|
||||
const debugTab = document.querySelector('.settings-tab[data-tab="tab-debug"]');
|
||||
if (!debugTab) return;
|
||||
const trigger = document.querySelector('h1 span');
|
||||
if (!trigger) return;
|
||||
|
||||
debugTab.addEventListener('click', function () {
|
||||
trigger.style.cursor = 'default';
|
||||
trigger.addEventListener('click', function () {
|
||||
clickCount++;
|
||||
clearTimeout(clickTimer);
|
||||
clickTimer = setTimeout(() => { clickCount = 0; }, 2000);
|
||||
|
||||
Reference in New Issue
Block a user