-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
112 lines (104 loc) · 4.28 KB
/
options.html
File metadata and controls
112 lines (104 loc) · 4.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat Markers – Options</title>
<style>
:root {
--accent: #6c63ff;
--bg: #f5f5f7;
--bg2: #fff;
--text: #1a1a2e;
--text2: #666;
--border: #e0e0e5;
--red: #ef4444;
--green: #22c55e;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1e1e2e; --bg2: #181825; --text: #cdd6f4;
--text2: #9399b2; --border: #313244; --accent: #cba6f7;
}
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg); color: var(--text);
min-height: 100vh; padding: 32px 24px;
}
.container { max-width: 680px; margin: 0 auto; }
h1 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: var(--text2); font-size: 13px; margin-bottom: 28px; }
.card {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px 24px;
margin-bottom: 20px;
}
h2 { font-size: 15px; margin-bottom: 14px; color: var(--accent); }
p { font-size: 13px; color: var(--text2); margin-bottom: 12px; line-height: 1.6; }
.btn {
border: none; border-radius: 8px; padding: 9px 18px;
font-size: 13px; font-weight: 600; cursor: pointer;
font-family: inherit; transition: opacity 0.2s;
margin-right: 8px; margin-bottom: 8px;
}
.btn:hover { opacity: 0.8; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-secondary { background: var(--border); color: var(--text); }
#storage-list {
display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.storage-row {
display: flex; align-items: center; justify-content: space-between;
background: var(--bg); border: 1px solid var(--border);
border-radius: 8px; padding: 8px 12px; font-size: 12px;
}
.storage-key { font-family: monospace; color: var(--text2); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.storage-count { color: var(--accent); font-weight: 600; margin: 0 12px; white-space: nowrap; }
.storage-del { background: none; border: none; cursor: pointer; color: var(--red); font-size: 14px; padding: 2px 6px; border-radius: 4px; }
.storage-del:hover { background: var(--red); color: #fff; }
#toast {
position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
background: #1e1e2e; color: #cdd6f4; padding: 10px 20px;
border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity 0.3s;
pointer-events: none; z-index: 9999;
}
#empty-msg { color: var(--text2); font-size: 13px; }
</style>
</head>
<body>
<div class="container">
<h1>📌 Chat Markers</h1>
<p class="subtitle">Manage your saved notes and markers across all ChatGPT conversations.</p>
<!-- Storage Overview -->
<div class="card">
<h2>Saved Conversations</h2>
<p>Below are all ChatGPT conversations that have saved markers. You can export or delete them individually.</p>
<button class="btn btn-primary" id="btn-refresh">↻ Refresh List</button>
<button class="btn btn-danger" id="btn-clear-all">🗑 Clear All Markers</button>
<button class="btn btn-secondary" id="btn-export-all">⬆ Export All as JSON</button>
<div id="storage-list"><span id="empty-msg">Loading…</span></div>
</div>
<!-- Import -->
<div class="card">
<h2>Import Notes</h2>
<p>Import a previously exported JSON file. Notes will be merged into the appropriate conversation.</p>
<input type="file" id="import-file" accept=".json" style="display:none">
<button class="btn btn-primary" id="btn-import">⬇ Import JSON</button>
</div>
<!-- About -->
<div class="card">
<h2>About</h2>
<p>Chat Markers v1.0.0 – Adds bookmarks and notes to ChatGPT conversations.</p>
<p>Developed by : Disitha Ranasinghe </p>
<p>Notes are stored locally in your browser using <code>chrome.storage.local</code> and never sent to any server.</p>
</div>
</div>
<div id="toast"></div>
<script src="options.js"></script>
</body>
</html>