-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
52 lines (48 loc) · 2.27 KB
/
Copy pathpopup.html
File metadata and controls
52 lines (48 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { width: 380px; font: 13px/1.5 -apple-system, sans-serif; padding: 12px; background: #1a1a2e; color: #e0e0e0; }
h1 { font-size: 15px; color: #ff6b35; margin-bottom: 8px; }
.version { font-size: 11px; color: #666; font-weight: normal; }
.status { padding: 6px 8px; border-radius: 4px; margin-bottom: 8px; font-size: 12px; }
.status.ok { background: #1b3a2d; color: #4ade80; }
.status.err { background: #3a1b1b; color: #f87171; }
.status.loading { background: #2a2a1b; color: #facc15; }
.btn-row { display: flex; gap: 4px; margin: 4px 0; }
button { flex: 1; padding: 8px; background: #ff6b35; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; }
button:hover { background: #e55a2b; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: #333; }
button.secondary:hover { background: #444; }
pre { background: #0d0d1a; padding: 8px; border-radius: 4px; font-size: 11px; max-height: 300px; overflow: auto; margin-top: 8px; white-space: pre-wrap; word-break: break-all; }
pre.success { border-left: 3px solid #4ade80; }
pre.error { border-left: 3px solid #f87171; }
.meta { font-size: 11px; color: #888; margin-top: 6px; display: flex; justify-content: space-between; }
.meta a { color: #ff6b35; text-decoration: none; }
.meta a:hover { text-decoration: underline; }
</style>
</head>
<body>
<h1>🔍 Ahrefs Extractor <span class="version">v1.1</span></h1>
<div id="status" class="status loading">Checking...</div>
<div class="btn-row">
<button id="btnExtract">Extract All</button>
<button id="btnMetrics">Metrics Only</button>
<button id="btnTables">Tables Only</button>
</div>
<div class="btn-row">
<button id="btnCopy" class="secondary">📋 Copy</button>
<button id="btnDownload" class="secondary">💾 Download JSON</button>
<button id="btnRefresh" class="secondary">🔄 Refresh</button>
</div>
<pre id="output"></pre>
<div class="meta">
<span id="timestamp"></span>
<a href="http://127.0.0.1:18800/status" target="_blank">Bridge API ↗</a>
</div>
<script src="popup.js"></script>
</body>
</html>