-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanager.html
More file actions
73 lines (66 loc) · 2.27 KB
/
manager.html
File metadata and controls
73 lines (66 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Import Bookmarks - Bookmark Sync</title>
<link rel="stylesheet" href="styles.css">
</head>
<body class="manager-page">
<div class="container">
<h1>📥 Import Bookmarks</h1>
<p>Select a JSON or HTML file to import bookmarks into the staging area.</p>
<!-- File input with drag-drop styling -->
<div class="file-input-wrapper" id="dropZone">
<input
type="file"
id="fileInput"
accept=".json,.html,.htm"
aria-label="Choose bookmark file to import (JSON or HTML)"
/>
<label for="fileInput" class="file-label" id="dropLabel">
📁 Choose File or Drag & Drop
</label>
</div>
<!-- Status message -->
<div id="status" class="status" role="status" aria-live="polite" aria-atomic="true"></div>
<!-- Instructions -->
<div class="instructions-box">
<h3>📝 How to Import Bookmarks:</h3>
<ol>
<li>Click "Choose File" or drag a file onto the area above</li>
<li>Select your bookmarks file (JSON or HTML format)</li>
<li>Wait for the import to complete</li>
<li>Close this tab and return to the extension popup</li>
<li>Click "Push to Browser" to add bookmarks to your browser</li>
</ol>
</div>
<!-- Supported formats info -->
<div class="info-box">
<h4>✅ Supported Formats:</h4>
<ul>
<li>
<strong>JSON:</strong> Array of bookmark objects
<pre><code>[
{
"title": "Example Site",
"url": "https://example.com",
"dateAdded": 1234567890000
}
]</code></pre>
</li>
<li>
<strong>HTML:</strong> Netscape bookmark format (standard browser export)
<br><small>Exported from Chrome, Firefox, Edge, Safari, etc.</small>
</li>
</ul>
</div>
<!-- Security notice -->
<div class="security-notice">
<strong>🔒 Security Note:</strong> Only <code>http://</code> and <code>https://</code> URLs are imported.
Potentially dangerous URLs (javascript:, data:, file:) are automatically filtered out.
</div>
</div>
<script src="popup.js"></script>
</body>
</html>