mcp-browser-extension 0.9.30 → 0.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -14
- package/SETUP.md +40 -7
- package/dist/shared/activity.d.ts +25 -0
- package/dist/shared/activity.js +72 -0
- package/dist/shared/browser-permissions.d.ts +20 -0
- package/dist/shared/browser-permissions.js +40 -0
- package/dist/shared/client-auth.d.ts +28 -0
- package/dist/shared/client-auth.js +38 -0
- package/dist/shared/observers.d.ts +1 -1
- package/dist/shared/observers.js +1 -3
- package/dist/shared/policy.d.ts +5 -7
- package/dist/shared/policy.js +11 -26
- package/dist/shared/protocol.d.ts +4 -0
- package/dist/shared/protocol.js +3 -3
- package/dist/shared/screenshot.d.ts +4 -2
- package/dist/shared/screenshot.js +13 -8
- package/dist/src/access-browser.d.ts +15 -0
- package/dist/src/access-browser.js +202 -0
- package/dist/src/access.d.ts +2 -0
- package/dist/src/access.js +92 -18
- package/dist/src/bridge/client-identity.d.ts +10 -0
- package/dist/src/bridge/client-identity.js +28 -0
- package/dist/src/bridge/connection.d.ts +5 -0
- package/dist/src/bridge/connection.js +4 -12
- package/dist/src/bridge/peer.d.ts +4 -19
- package/dist/src/bridge/peer.js +17 -8
- package/dist/src/bridge/server.d.ts +7 -16
- package/dist/src/bridge/server.js +64 -17
- package/dist/src/bridge/site-grants.d.ts +1 -2
- package/dist/src/bridge/site-grants.js +4 -3
- package/dist/src/cli.js +1 -3
- package/dist/src/config.js +16 -5
- package/dist/src/executor/cdp-executor.d.ts +3 -0
- package/dist/src/executor/cdp-executor.js +69 -25
- package/dist/src/mcp/server.js +5 -3
- package/dist/src/mcp/tools.d.ts +0 -12
- package/dist/src/mcp/tools.js +48 -22
- package/dist/src/remote/key.js +12 -2
- package/dist/src/security/policy.d.ts +4 -0
- package/dist/src/security/policy.js +3 -1
- package/docs/BLUEPRINT.md +6 -1
- package/docs/CLIENT-APPROVAL.md +150 -0
- package/extension-dist/activity-dashboard.css +43 -0
- package/extension-dist/background.js +1036 -73
- package/extension-dist/manifest.json +10 -9
- package/extension-dist/options.html +101 -32
- package/extension-dist/options.js +558 -70
- package/extension-dist/popup.html +164 -90
- package/extension-dist/popup.js +576 -79
- package/package.json +3 -2
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<title>MCP Browser Extension</title>
|
|
6
|
+
<link rel="stylesheet" href="activity-dashboard.css" />
|
|
6
7
|
<style>
|
|
7
8
|
:root {
|
|
8
9
|
--bg: #ffffff;
|
|
@@ -12,14 +13,15 @@
|
|
|
12
13
|
--muted: #64748b;
|
|
13
14
|
--line: #e6e8ec;
|
|
14
15
|
--ok: #16a34a;
|
|
16
|
+
--ok-text: #15803d;
|
|
15
17
|
--ok-soft: #dcfce7;
|
|
16
18
|
--warn: #c2410c;
|
|
17
19
|
--warn-soft: #fff1e6;
|
|
18
20
|
--bad: #dc2626;
|
|
19
|
-
--accent: oklch(0.
|
|
21
|
+
--accent: oklch(0.56 0.19 255);
|
|
20
22
|
--accent-foreground: oklch(0.99 0 0);
|
|
21
23
|
--accent-2: var(--accent);
|
|
22
|
-
--ring: oklch(0.
|
|
24
|
+
--ring: oklch(0.56 0.19 255 / 35%);
|
|
23
25
|
--shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.06);
|
|
24
26
|
}
|
|
25
27
|
@media (prefers-color-scheme: dark) {
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
--muted: #8b93a7;
|
|
32
34
|
--line: #232836;
|
|
33
35
|
--ok: #34d399;
|
|
36
|
+
--ok-text: #34d399;
|
|
34
37
|
--ok-soft: rgba(52, 211, 153, 0.12);
|
|
35
38
|
--warn: #fb923c;
|
|
36
39
|
--warn-soft: rgba(251, 146, 60, 0.1);
|
|
@@ -42,119 +45,194 @@
|
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
47
|
* { box-sizing: border-box; }
|
|
48
|
+
html { width: 360px; min-width: 360px; scrollbar-width: none; }
|
|
49
|
+
html::-webkit-scrollbar { display: none; }
|
|
50
|
+
.access-list { scrollbar-color: var(--accent) var(--panel); scrollbar-width: thin; }
|
|
51
|
+
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
52
|
+
::-webkit-scrollbar-track { background: var(--panel); border-radius: 8px; }
|
|
53
|
+
::-webkit-scrollbar-thumb { background: var(--accent); border: 2px solid var(--panel); border-radius: 8px; }
|
|
45
54
|
body { margin: 0; width: 360px; font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
|
|
46
55
|
|
|
47
|
-
/*
|
|
48
|
-
header {
|
|
49
|
-
|
|
50
|
-
header > * { position: relative; }
|
|
51
|
-
.logo { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3); }
|
|
56
|
+
/* Header and connection */
|
|
57
|
+
header { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px; }
|
|
58
|
+
.logo { flex: none; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
|
|
52
59
|
.logo img { width: 34px; height: 34px; display: block; }
|
|
53
60
|
.title { flex: 1; min-width: 0; }
|
|
54
|
-
.title
|
|
55
|
-
.title span { color: var(--muted); font-size: 12px; }
|
|
56
|
-
.
|
|
57
|
-
.
|
|
61
|
+
.title h1 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
|
|
62
|
+
.title span { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
|
|
63
|
+
.connection-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
64
|
+
.pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 500; }
|
|
65
|
+
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
|
|
58
66
|
.pill.ok .dot { background: var(--ok); }
|
|
59
|
-
.pill.ok .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--ok); opacity: 0.35; animation: pulse 1.8s ease-out infinite; }
|
|
60
67
|
.pill.warn .dot { background: var(--warn); }
|
|
61
68
|
.pill.bad .dot { background: var(--bad); }
|
|
62
|
-
|
|
69
|
+
#connect { flex: none; min-width: 92px; }
|
|
70
|
+
#connect.secondary { background: var(--panel); color: var(--fg); border-color: var(--line); }
|
|
71
|
+
.connect #connect-text { margin: 8px 0 0; }
|
|
72
|
+
.connect.done #connect-text { display: none; }
|
|
73
|
+
.connect .error { margin: 8px 0 0; color: var(--warn); }
|
|
63
74
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
75
|
+
/* Let Chrome size and scroll the popup document naturally. */
|
|
76
|
+
main { padding: 0 12px 12px; display: grid; gap: 12px; }
|
|
77
|
+
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
|
|
78
|
+
h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--fg); }
|
|
79
|
+
.count { font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
|
|
80
|
+
.note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
|
|
81
|
+
.note:empty { display: none; }
|
|
82
|
+
code { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 5px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); }
|
|
83
|
+
ul { list-style: none; margin: 0; padding: 0; }
|
|
84
|
+
.access-list[data-overflow] { max-height: var(--list-height); overflow-y: auto; overflow-x: hidden; padding-right: 10px; scrollbar-gutter: stable; }
|
|
85
|
+
.access-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
86
|
+
.access-list[data-overflow] button:focus-visible, .access-list[data-overflow] summary:focus-visible { outline-offset: -2px; }
|
|
68
87
|
|
|
69
|
-
/*
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
.
|
|
74
|
-
.
|
|
75
|
-
.
|
|
76
|
-
.
|
|
77
|
-
|
|
88
|
+
/* App connections */
|
|
89
|
+
#client-connections li { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
|
|
90
|
+
#client-connections li:first-child { padding-top: 4px; }
|
|
91
|
+
#client-connections li:last-child { border-bottom: 0; }
|
|
92
|
+
.client-info { min-width: 0; display: grid; justify-items: start; gap: 4px; overflow-wrap: anywhere; }
|
|
93
|
+
.client-info strong { font-size: 13px; font-weight: 600; }
|
|
94
|
+
.client-info code { display: inline-block; }
|
|
95
|
+
.client-details { grid-column: 1 / -1; min-width: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
|
|
96
|
+
.client-details summary { width: fit-content; padding: 2px 0; cursor: pointer; }
|
|
97
|
+
.client-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
|
|
98
|
+
.client-details p { margin: 4px 0; }
|
|
99
|
+
.client-details code { display: inline-block; margin-top: 4px; }
|
|
100
|
+
.client-status { color: var(--muted); font-size: 12px; }
|
|
101
|
+
[data-state="pending"] .client-status { color: var(--warn); }
|
|
102
|
+
[data-state="approved"] .client-status { color: var(--ok-text); }
|
|
103
|
+
.client-actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
104
|
+
.client-actions:empty { display: none; }
|
|
105
|
+
#client-connections li[data-state="approved"] { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
106
|
+
#client-connections li[data-state="approved"] .client-actions { justify-content: end; }
|
|
107
|
+
#client-connections li[data-state="approved"] .client-actions button { padding: 6px 8px; font-size: 11px; }
|
|
108
|
+
#client-count[data-pending="true"] { color: var(--warn); background: var(--warn-soft); }
|
|
109
|
+
#client-note[data-error="true"] { color: var(--warn); }
|
|
110
|
+
.access-help { border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: 12px; }
|
|
111
|
+
.access-help summary { cursor: pointer; padding: 4px 0; }
|
|
78
112
|
|
|
79
|
-
/*
|
|
80
|
-
|
|
81
|
-
.row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; transition: background 0.15s; }
|
|
113
|
+
/* Website and feature access */
|
|
114
|
+
.row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 0; border-radius: 8px; transition: background 0.15s; }
|
|
82
115
|
.row:hover { background: var(--panel); }
|
|
83
116
|
.row .host { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
84
117
|
.mini { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; }
|
|
85
|
-
.tag { color: var(--muted); font-size:
|
|
86
|
-
|
|
87
|
-
.blocked {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.
|
|
93
|
-
.
|
|
94
|
-
.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
118
|
+
.tag { color: var(--muted); font-size: 11px; white-space: nowrap; }
|
|
119
|
+
.blocked { border-color: color-mix(in srgb, var(--warn) 28%, var(--line)); }
|
|
120
|
+
.blocked .count { color: var(--warn); background: var(--warn-soft); }
|
|
121
|
+
#extra-permissions-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
|
|
122
|
+
#extra-permissions-list li:first-child { padding-top: 0; }
|
|
123
|
+
#extra-permissions-list li:last-child { padding-bottom: 0; border-bottom: 0; }
|
|
124
|
+
#extra-permissions-list button { margin-top: 8px; }
|
|
125
|
+
.site { display: flex; align-items: center; gap: 12px; }
|
|
126
|
+
.avatar { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; text-transform: uppercase; }
|
|
127
|
+
.site-main { flex: 1; min-width: 0; }
|
|
128
|
+
.site-host { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
129
|
+
.chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
|
|
130
|
+
.chip.ok { color: var(--ok-text); background: var(--ok-soft); }
|
|
131
|
+
.chip.warn { color: var(--warn); background: var(--warn-soft); }
|
|
132
|
+
#site-allow { margin-top: 12px; width: 100%; }
|
|
133
|
+
|
|
134
|
+
/* Controls */
|
|
135
|
+
button { min-height: 32px; font: inherit; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
|
|
98
136
|
button:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--line)); }
|
|
99
|
-
button:active {
|
|
100
|
-
button
|
|
101
|
-
button.primary { border-color: transparent; color: var(--accent-foreground); background: var(--accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent); }
|
|
137
|
+
button:active { background: var(--panel); }
|
|
138
|
+
button.primary { border-color: transparent; color: var(--accent-foreground); background: var(--accent); }
|
|
102
139
|
button.primary:hover { background: color-mix(in oklch, var(--accent) 88%, var(--fg)); }
|
|
103
140
|
button.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 6px 8px; }
|
|
104
141
|
button.ghost:hover { color: var(--fg); background: var(--panel); }
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.switch { display: flex; align-items: center; gap:
|
|
142
|
+
button:disabled { cursor: wait; opacity: 0.6; }
|
|
143
|
+
button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
144
|
+
.switch { display: flex; align-items: center; gap: 12px; min-height: 32px; cursor: pointer; user-select: none; font-size: 12px; }
|
|
108
145
|
.switch span { flex: 1; }
|
|
109
146
|
.switch input { appearance: none; flex: none; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; }
|
|
110
147
|
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
|
|
111
|
-
.switch input:checked { background:
|
|
148
|
+
.switch input:checked { background: var(--accent); }
|
|
112
149
|
.switch input:checked::after { transform: translateX(16px); }
|
|
113
|
-
.switch input:focus-visible {
|
|
114
|
-
|
|
115
|
-
.note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
|
|
116
|
-
.note:empty { display: none; }
|
|
117
|
-
ol { margin: 2px 0 12px; padding-left: 18px; color: var(--muted); }
|
|
118
|
-
ol li { margin: 3px 0; }
|
|
119
|
-
code { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 5px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); }
|
|
120
|
-
.connect .note { margin: 0 0 10px; color: var(--fg); }
|
|
121
|
-
#connect { width: 100%; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
|
|
122
|
-
#connect.secondary { background: var(--panel); color: var(--fg); border-color: var(--line); box-shadow: none; padding: 7px 12px; font-size: 12.5px; font-weight: 500; }
|
|
123
|
-
.connect .error { margin: 8px 0 0; color: var(--warn); }
|
|
124
|
-
.connect.done { padding: 10px 12px; }
|
|
125
|
-
.connect.done .note { display: none; }
|
|
150
|
+
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
126
151
|
|
|
127
|
-
|
|
128
|
-
footer
|
|
129
|
-
footer
|
|
152
|
+
/* Secondary navigation and update explanation */
|
|
153
|
+
footer { position: relative; flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
|
|
154
|
+
footer .footer-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-color: transparent; background: transparent; color: var(--muted); font-size: 11px; }
|
|
155
|
+
footer .footer-link:hover { color: var(--fg); background: var(--panel); }
|
|
156
|
+
#settings { color: var(--fg); }
|
|
157
|
+
.update-help { display: inline-flex; }
|
|
158
|
+
.update-tooltip { position: absolute; z-index: 10; bottom: 100%; left: 12px; right: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); box-shadow: var(--shadow); font-size: 12px; line-height: 1.5; visibility: hidden; }
|
|
159
|
+
.update-help:not([data-dismissed]):hover .update-tooltip,
|
|
160
|
+
.update-help:not([data-dismissed]):focus-within .update-tooltip { visibility: visible; }
|
|
161
|
+
@media (prefers-reduced-motion: reduce) {
|
|
162
|
+
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
163
|
+
}
|
|
130
164
|
|
|
131
165
|
[hidden] { display: none !important; }
|
|
132
166
|
</style>
|
|
133
167
|
</head>
|
|
134
|
-
<body>
|
|
168
|
+
<body data-view="popup">
|
|
135
169
|
<header>
|
|
136
170
|
<div class="logo"><img src="icon48.png" alt="" /></div>
|
|
137
171
|
<div class="title">
|
|
138
|
-
<
|
|
172
|
+
<h1>MCP Browser Extension</h1>
|
|
139
173
|
<span id="paired-as">Lets your AI agent use this Chrome</span>
|
|
140
174
|
</div>
|
|
141
|
-
<span class="pill" id="state"><span class="dot"></span><span id="state-text">…</span></span>
|
|
142
175
|
</header>
|
|
143
176
|
|
|
144
177
|
<main>
|
|
145
|
-
<section class="card
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
178
|
+
<section class="card connect" id="connect-card" aria-label="Browser connection">
|
|
179
|
+
<div class="connection-row">
|
|
180
|
+
<span class="pill" id="state"><span class="dot"></span><span id="state-text">…</span></span>
|
|
181
|
+
<button class="primary" id="connect">Connect</button>
|
|
182
|
+
</div>
|
|
183
|
+
<p class="note" id="connect-text">Connect to your app to start using this browser.</p>
|
|
184
|
+
<p class="note error" id="connect-msg" role="status" aria-live="polite"></p>
|
|
185
|
+
<div class="access-controls">
|
|
186
|
+
<button id="access-stop">Stop access</button>
|
|
187
|
+
<button id="access-resume" class="primary" hidden>Resume connection</button>
|
|
188
|
+
</div>
|
|
189
|
+
<p class="note" id="access-note" role="status"></p>
|
|
190
|
+
</section>
|
|
191
|
+
|
|
192
|
+
<section class="card" id="clients-section">
|
|
193
|
+
<h2>App connections <span class="count" id="client-count"></span></h2>
|
|
194
|
+
<p class="note" id="client-help" hidden>Approve only an app you opened. Match the key shown in your app.</p>
|
|
195
|
+
<ul id="client-connections" class="access-list" aria-label="App connections"></ul>
|
|
196
|
+
<p class="note" id="client-note" role="status" aria-live="polite"></p>
|
|
197
|
+
<details class="access-help" id="client-limits" hidden>
|
|
198
|
+
<summary>About app access</summary>
|
|
199
|
+
<p class="note">Each entry is a separate connection. App names are supplied by the app. Access lasts 8 hours. Removing access stops new actions; an action already running may finish.</p>
|
|
200
|
+
</details>
|
|
201
|
+
</section>
|
|
202
|
+
|
|
203
|
+
<section class="card blocked" id="blocked-section" hidden>
|
|
204
|
+
<h2>Website access <span class="count" id="blocked-count"></span></h2>
|
|
205
|
+
<p class="note">Allow lets approved apps read and act here, including sending, deleting and buying. Accept Chrome’s prompt if shown.</p>
|
|
206
|
+
<ul id="blocked" class="access-list" aria-label="Website access"></ul>
|
|
207
|
+
</section>
|
|
208
|
+
|
|
209
|
+
<section class="card" id="allowed-section" hidden>
|
|
210
|
+
<h2>Allowed sites <span class="count" id="allowed-count"></span></h2>
|
|
211
|
+
<p class="note">Approved apps can read and act on these sites. Remove stops new actions.</p>
|
|
212
|
+
<ul id="allowed" class="access-list" aria-label="Allowed sites"></ul>
|
|
213
|
+
<p class="note" id="allowed-note"></p>
|
|
214
|
+
</section>
|
|
215
|
+
|
|
216
|
+
<section class="card" id="activity-section">
|
|
217
|
+
<h2>Recent activity</h2>
|
|
218
|
+
<ul id="activity-list" class="activity-list access-list" aria-label="Recent activity"></ul>
|
|
219
|
+
<p class="note" id="activity-note" role="status"></p>
|
|
220
|
+
<div class="activity-actions">
|
|
221
|
+
<button id="activity-all">Open full history</button>
|
|
222
|
+
<button id="activity-clear" class="ghost">Clear history</button>
|
|
151
223
|
</div>
|
|
224
|
+
<details class="activity-help">
|
|
225
|
+
<summary>About this history</summary>
|
|
226
|
+
<p>MCP activity appears automatically. Opening and closing the same tab with the same app share one row. Select a row for the app, key and times.</p>
|
|
227
|
+
<p>Last 100 requests received by this extension, kept only for this Chrome session. Website names, app keys and results only; no page text or entered values. App names are supplied by the apps.</p>
|
|
228
|
+
<p>Requests refused by the server may not appear. Interrupted means the result was withheld or unavailable; an action may still have finished.</p>
|
|
229
|
+
</details>
|
|
152
230
|
</section>
|
|
153
231
|
|
|
154
|
-
<section class="card
|
|
155
|
-
<
|
|
156
|
-
<
|
|
157
|
-
<p class="note
|
|
232
|
+
<section class="card" id="extra-permissions" hidden>
|
|
233
|
+
<h2>Extra permissions</h2>
|
|
234
|
+
<ul id="extra-permissions-list"></ul>
|
|
235
|
+
<p class="note" id="extra-permissions-note" role="status" aria-live="polite"></p>
|
|
158
236
|
</section>
|
|
159
237
|
|
|
160
238
|
<section class="card" id="this-site" hidden>
|
|
@@ -166,20 +244,10 @@
|
|
|
166
244
|
<span class="chip" id="site-state"></span>
|
|
167
245
|
</div>
|
|
168
246
|
</div>
|
|
247
|
+
<p class="note">Allow lets approved apps read and act here, including sending, deleting and buying.</p>
|
|
169
248
|
<button class="primary" id="site-allow" hidden>Allow the agent on this site</button>
|
|
170
249
|
</section>
|
|
171
250
|
|
|
172
|
-
<section class="card blocked" id="blocked-section" hidden>
|
|
173
|
-
<h2>Blocked just now <span class="count" id="blocked-count"></span></h2>
|
|
174
|
-
<ul id="blocked"></ul>
|
|
175
|
-
</section>
|
|
176
|
-
|
|
177
|
-
<section class="card" id="allowed-section" hidden>
|
|
178
|
-
<h2>Allowed sites <span class="count" id="allowed-count"></span></h2>
|
|
179
|
-
<ul id="allowed"></ul>
|
|
180
|
-
<p class="note" id="allowed-note"></p>
|
|
181
|
-
</section>
|
|
182
|
-
|
|
183
251
|
<section class="card">
|
|
184
252
|
<label class="switch"><span>Outline the tabs the agent is working in</span><input id="tab-border" type="checkbox" /></label>
|
|
185
253
|
</section>
|
|
@@ -187,7 +255,13 @@
|
|
|
187
255
|
|
|
188
256
|
<footer>
|
|
189
257
|
<span id="version"></span>
|
|
190
|
-
<
|
|
258
|
+
<span id="update" hidden>
|
|
259
|
+
<span class="update-help" id="update-help">
|
|
260
|
+
<button class="footer-link" id="update-store" aria-label="Get automatic updates from Chrome Web Store" aria-describedby="update-text" hidden>Get automatic updates</button>
|
|
261
|
+
<span class="update-tooltip" id="update-text" role="tooltip"></span>
|
|
262
|
+
</span>
|
|
263
|
+
</span>
|
|
264
|
+
<button class="footer-link" id="settings">Settings <span aria-hidden="true">→</span></button>
|
|
191
265
|
</footer>
|
|
192
266
|
<script src="popup.js"></script>
|
|
193
267
|
</body>
|