-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquicktab-debug.html
More file actions
168 lines (161 loc) · 5.33 KB
/
Copy pathquicktab-debug.html
File metadata and controls
168 lines (161 loc) · 5.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QuickTab调试工具</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
background: #f5f5f5;
}
.debug-container {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.step {
margin: 15px 0;
padding: 10px;
border-left: 4px solid #667eea;
background: #f8f9fa;
}
.code {
background: #f0f0f0;
padding: 10px;
border-radius: 4px;
font-family: monospace;
font-size: 12px;
margin: 10px 0;
}
.highlight {
background: #fff3cd;
padding: 2px 4px;
border-radius: 3px;
}
</style>
</head>
<body>
<h1>🔍 QuickTab ChatGPT图标调试工具</h1>
<div class="debug-container">
<h2>步骤1: 检查QuickTab扩展状态</h2>
<div class="step">
<strong>1.1 打开QuickTab弹窗</strong><br>
点击Chrome工具栏中的QuickTab图标,打开弹窗
</div>
<div class="step">
<strong>1.2 检查是否有ChatGPT标签页</strong><br>
在QuickTab弹窗中查找ChatGPT相关的标签页
</div>
<div class="step">
<strong>1.3 打开开发者工具</strong><br>
按F12打开开发者工具,查看Console标签页
</div>
</div>
<div class="debug-container">
<h2>步骤2: 查找调试信息</h2>
<div class="step">
<strong>在控制台中查找以下信息:</strong>
<div class="code">
🔍 Favicon调试 - chatgpt.com: {
url: "https://chatgpt.com/...",
favIconUrl: "...",
fallbackIcon: "🤖",
domainColor: "#f093fb",
hasFaviconUrl: true/false
}
</div>
</div>
<div class="step">
<strong>如果没有看到上述信息,可能的原因:</strong>
<ul>
<li>ChatGPT标签页没有在QuickTab中显示</li>
<li>QuickTab没有正确加载</li>
<li>调试信息被其他日志覆盖</li>
</ul>
</div>
</div>
<div class="debug-container">
<h2>步骤3: 手动测试图标显示</h2>
<div class="step">
<strong>在控制台中运行以下代码:</strong>
<div class="code">
// 创建测试图标
const testIcon = document.createElement('div');
testIcon.style.cssText = `
width: 16px;
height: 16px;
background: #f093fb;
color: white;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
`;
testIcon.textContent = '🤖';
document.body.appendChild(testIcon);
console.log('测试图标已添加到页面');
</div>
</div>
</div>
<div class="debug-container">
<h2>步骤4: 检查扩展加载</h2>
<div class="step">
<strong>4.1 重新加载扩展</strong><br>
打开 <span class="highlight">chrome://extensions/</span>,找到QuickTab扩展,点击"重新加载"按钮
</div>
<div class="step">
<strong>4.2 检查manifest.json</strong><br>
确认扩展的manifest.json文件正确配置
</div>
<div class="step">
<strong>4.3 检查popup.js</strong><br>
确认popup.js文件包含最新的favicon处理代码
</div>
</div>
<div class="debug-container">
<h2>步骤5: 问题报告</h2>
<div class="step">
<strong>请告诉我以下信息:</strong>
<ul>
<li>在QuickTab弹窗中是否能看到ChatGPT标签页?</li>
<li>ChatGPT标签页显示的是什么图标?(空白、🤖、其他)</li>
<li>控制台中是否有 <span class="highlight">🔍 Favicon调试 - chatgpt.com:</span> 的日志?</li>
<li>手动测试图标是否显示正常?</li>
</ul>
</div>
</div>
<script>
console.log('🔍 QuickTab调试工具已加载');
console.log('请按照上述步骤进行调试');
// 自动创建测试图标
setTimeout(() => {
const testIcon = document.createElement('div');
testIcon.style.cssText = `
width: 16px;
height: 16px;
background: #f093fb;
color: white;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
margin: 10px 0;
`;
testIcon.textContent = '🤖';
testIcon.title = 'ChatGPT测试图标 - 16x16像素,粉色背景';
document.body.appendChild(testIcon);
console.log('✅ ChatGPT测试图标已添加到页面');
}, 1000);
</script>
</body>
</html>