-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
executable file
·370 lines (357 loc) · 16.5 KB
/
popup.html
File metadata and controls
executable file
·370 lines (357 loc) · 16.5 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JobSieve Settings</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<header class="header">
<div class="header-top">
<div class="logo">
<div class="logo-icon">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none">
<rect width="28" height="28" rx="8" fill="rgba(255,255,255,0.15)" />
<path d="M9 8L14 6L19 8V15L14 20L9 15V8Z" stroke="white" stroke-width="1.5" stroke-linejoin="round"
fill="rgba(255,255,255,0.1)" />
<circle cx="14" cy="12" r="2.5" stroke="white" stroke-width="1.5" />
<path d="M14 14.5V17" stroke="white" stroke-width="1.5" stroke-linecap="round" />
</svg>
</div>
<div class="logo-text">
<h1>JobSieve</h1>
<p>LinkedIn Job Filter</p>
</div>
</div>
<div class="header-actions">
<div class="health-status" id="healthStatus">
<span class="status-dot" id="statusIndicator"></span>
<span class="status-label" id="statusText">Loading...</span>
</div>
<button type="button" id="themeToggle" class="btn-theme-toggle" title="Toggle dark mode">
<svg class="icon-moon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
<svg class="icon-sun" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
</button>
<button type="button" id="resetSettings" class="btn-reset-header" title="Reset all filters">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polyline points="1 4 1 10 7 10"></polyline>
<path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>
</svg>
Reset
</button>
</div>
</div>
</header>
<main class="content">
<!-- Stats Dashboard -->
<section class="stats-dashboard" id="statsDashboard">
<div class="stats-bar">
<div class="stats-bar-item">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M13.875 18.825A10.05 10.05 0 0 1 12 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 0 1 1.563-3.029m5.858.908a3 3 0 1 1 4.243 4.243M9.878 9.878l4.242 4.242M3 3l18 18" />
</svg>
<span class="stats-value" id="statsFiltered">0</span>
<span class="stats-label">hidden</span>
</div>
<div class="stats-divider"></div>
<div class="stats-bar-item">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" />
</svg>
<span class="stats-value" id="statsHighlighted">0</span>
<span class="stats-label">highlighted</span>
</div>
<div class="stats-divider"></div>
<div class="stats-bar-item">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
<line x1="3" y1="9" x2="21" y2="9" />
<line x1="9" y1="21" x2="9" y2="9" />
</svg>
<span class="stats-value" id="statsTotalProcessed">0</span>
<span class="stats-label">total</span>
</div>
</div>
<button type="button" class="stats-toggle-details" id="statsToggleDetails">
<span>Details</span>
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round" stroke-linejoin="round">
<polyline points="6 9 12 15 18 9" />
</svg>
</button>
<div class="stats-details" id="statsDetails" style="display: none;">
<div class="stats-breakdown">
<h4 class="stats-section-title">Session Breakdown</h4>
<div class="stats-grid">
<div class="stats-grid-item"><span class="stats-grid-label">Company</span><span class="stats-grid-value"
id="statsByCompany">0</span></div>
<div class="stats-grid-item"><span class="stats-grid-label">Location</span><span class="stats-grid-value"
id="statsByLocation">0</span></div>
<div class="stats-grid-item"><span class="stats-grid-label">Keyword</span><span class="stats-grid-value"
id="statsByKeyword">0</span></div>
<div class="stats-grid-item"><span class="stats-grid-label">Promoted</span><span class="stats-grid-value"
id="statsByPromoted">0</span></div>
<div class="stats-grid-item"><span class="stats-grid-label">Viewed</span><span class="stats-grid-value"
id="statsByViewed">0</span></div>
</div>
</div>
</div>
</section>
<!-- Company Blacklist -->
<section class="filter-card">
<div class="filter-card-header">
<div class="filter-title-row">
<div class="filter-icon filter-icon--ban">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9" />
<path d="M13.73 21a2 2 0 0 1-3.46 0" />
</svg>
</div>
<div class="filter-title-text">
<h3>Company Blacklist</h3>
<p class="filter-desc">Hide jobs from specific companies</p>
</div>
</div>
<label class="toggle">
<input type="checkbox" id="companyBlacklistEnabled">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
</label>
</div>
<div class="filter-card-body">
<div class="input-row">
<div class="input-wrapper">
<svg class="input-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8" />
<line x1="21" y1="21" x2="16.65" y2="16.65" />
</svg>
<input type="text" id="companyInput" placeholder="Enter company name">
</div>
<button type="button" id="addCompany" class="btn-add">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round">
<line x1="12" y1="5" x2="12" y2="19" />
<line x1="5" y1="12" x2="19" y2="12" />
</svg>
Add
</button>
</div>
<div class="tags" id="companyTags"></div>
</div>
</section>
<!-- Location Exclusion -->
<section class="filter-card">
<div class="filter-card-header">
<div class="filter-title-row">
<div class="filter-icon filter-icon--location">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" />
<circle cx="12" cy="10" r="3" />
</svg>
</div>
<div class="filter-title-text">
<h3>Location Exclusion</h3>
<p class="filter-desc">Hide jobs from specific locations</p>
</div>
</div>
<label class="toggle">
<input type="checkbox" id="locationBlacklistEnabled">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
</label>
</div>
<div class="filter-card-body">
<div class="input-row">
<div class="input-wrapper">
<svg class="input-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8" />
<line x1="21" y1="21" x2="16.65" y2="16.65" />
</svg>
<input type="text" id="locationInput" placeholder="Enter city, region, or country">
</div>
<button type="button" id="addLocation" class="btn-add">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round">
<line x1="12" y1="5" x2="12" y2="19" />
<line x1="5" y1="12" x2="19" y2="12" />
</svg>
Add
</button>
</div>
<div class="tags" id="locationTags"></div>
</div>
</section>
<!-- Keyword Blacklist -->
<section class="filter-card">
<div class="filter-card-header">
<div class="filter-title-row">
<div class="filter-icon filter-icon--block">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10" />
<line x1="4.93" y1="4.93" x2="19.07" y2="19.07" />
</svg>
</div>
<div class="filter-title-text">
<h3>Keyword Blacklist</h3>
<p class="filter-desc">Hide jobs containing unwanted terms</p>
</div>
</div>
<label class="toggle">
<input type="checkbox" id="keywordBlacklistEnabled">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
</label>
</div>
<div class="filter-card-body">
<div class="input-row">
<div class="input-wrapper">
<svg class="input-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8" />
<line x1="21" y1="21" x2="16.65" y2="16.65" />
</svg>
<input type="text" id="keywordBlacklistInput" placeholder="e.g. Senior, Contract, Remote">
</div>
<button type="button" id="addKeywordBlacklist" class="btn-add">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round">
<line x1="12" y1="5" x2="12" y2="19" />
<line x1="5" y1="12" x2="19" y2="12" />
</svg>
Add
</button>
</div>
<div class="tags" id="keywordBlacklistTags"></div>
</div>
</section>
<!-- Keyword Whitelist -->
<section class="filter-card">
<div class="filter-card-header">
<div class="filter-title-row">
<div class="filter-icon filter-icon--star">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" />
</svg>
</div>
<div class="filter-title-text">
<h3>Keyword Whitelist</h3>
<p class="filter-desc">Highlight jobs with desired skills or perks</p>
</div>
</div>
<label class="toggle">
<input type="checkbox" id="keywordWhitelistEnabled">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
</label>
</div>
<div class="filter-card-body">
<div class="input-row">
<div class="input-wrapper">
<svg class="input-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8" />
<line x1="21" y1="21" x2="16.65" y2="16.65" />
</svg>
<input type="text" id="keywordWhitelistInput" placeholder="e.g. React, Python, Remote">
</div>
<button type="button" id="addKeywordWhitelist" class="btn-add">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round">
<line x1="12" y1="5" x2="12" y2="19" />
<line x1="5" y1="12" x2="19" y2="12" />
</svg>
Add
</button>
</div>
<div class="tags" id="keywordWhitelistTags"></div>
</div>
</section>
<!-- Hide Promoted Jobs -->
<section class="filter-card filter-card--compact">
<div class="filter-card-header">
<div class="filter-title-row">
<div class="filter-icon filter-icon--promoted">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" />
<line x1="1" y1="1" x2="23" y2="23" />
</svg>
</div>
<div class="filter-title-text">
<h3>Hide Promoted Jobs</h3>
<p class="filter-desc">Hide sponsored/promoted job listings</p>
</div>
</div>
<label class="toggle">
<input type="checkbox" id="hidePromotedEnabled">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
</label>
</div>
</section>
<!-- Hide Viewed Jobs -->
<section class="filter-card filter-card--compact">
<div class="filter-card-header">
<div class="filter-title-row">
<div class="filter-icon filter-icon--viewed">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
<circle cx="12" cy="12" r="3" />
<line x1="1" y1="1" x2="23" y2="23" />
</svg>
</div>
<div class="filter-title-text">
<h3>Hide Viewed Jobs</h3>
<p class="filter-desc">Hide jobs you've already viewed</p>
</div>
</div>
<label class="toggle">
<input type="checkbox" id="hideViewedEnabled">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
</label>
</div>
</section>
</main>
<footer class="footer">
<span class="footer-text">JobSieve v2.0.0</span>
</footer>
<script src="popup.js"></script>
</div>
</body>
</html>