-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
160 lines (160 loc) · 3.44 KB
/
popup.html
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
<!DOCTYPE html>
<html>
<head>
<title>YouTube Recommendations Tracker</title>
<style>
body {
width: 700px;
padding: 16px;
font-family: Arial, sans-serif;
}
.recommendation-list {
max-height: 600px;
overflow-y: auto;
overflow-x: hidden;
}
.video-entry {
margin-bottom: 24px;
border: 1px solid #eee;
border-radius: 8px;
padding: 16px;
background: #fff;
}
.timestamp {
color: #666;
font-size: 12px;
}
.source-video {
display: flex;
align-items: start;
cursor: pointer;
padding: 12px;
background: #f8f8f8;
border-radius: 4px;
margin: 8px 0;
}
.source-video img {
width: 160px;
height: 90px;
border-radius: 4px;
margin-right: 16px;
object-fit: cover;
}
.source-video-info {
flex: 1;
}
.source-video-title {
font-size: 16px;
font-weight: bold;
margin-bottom: 4px;
}
.recommendations {
display: none;
margin-top: 16px;
padding: 16px;
background: #f8f8f8;
border-radius: 4px;
}
.recommendations.active {
display: block;
}
.recommendation-item {
display: flex;
align-items: start;
margin: 12px 0;
padding-bottom: 12px;
border-bottom: 1px solid #eee;
font-size: 13px;
}
.recommendation-item:last-child {
border-bottom: none;
}
.recommendation-thumbnail {
width: 120px;
height: 68px;
border-radius: 4px;
margin-right: 12px;
object-fit: cover;
}
.recommendation-info {
flex: 1;
}
.recommendation-title {
font-weight: bold;
margin-bottom: 4px;
color: #000;
text-decoration: none;
font-size: 14px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.recommendation-title:hover {
text-decoration: underline;
}
.recommendation-meta {
font-size: 11px;
color: #666;
line-height: 1.4;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.buttons {
display: flex;
gap: 8px;
}
button {
padding: 8px 16px;
border-radius: 4px;
border: 1px solid #ddd;
background: #fff;
cursor: pointer;
}
button:hover {
background: #f0f0f0;
}
.collapse-arrow {
margin-left: auto;
color: #666;
width: 24px;
height: 24px;
padding: 0 8px;
display: flex;
align-items: center;
justify-content: center;
}
.collapse-arrow::after {
content: '';
width: 8px;
height: 8px;
border-right: 2px solid #666;
border-bottom: 2px solid #666;
transform: rotate(45deg);
margin-top: -4px;
transition: transform 0.2s ease;
}
.collapsed .collapse-arrow::after {
transform: rotate(-135deg);
margin-top: 4px;
}
</style>
</head>
<body>
<div class="header">
<h2>Recent Recommendations <span style="font-size: 12px; color: #666;">v1.0.16</span></h2>
<div class="buttons">
<!-- <button id="debugBtn">Show All Data</button> -->
<button id="clearBtn">Clear All Data</button>
</div>
</div>
<div id="recommendationList" class="recommendation-list">
Loading...
</div>
<script src="popup.js"></script>
</body>
</html>