cdp-tunnel 2.8.0 → 2.8.1

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.8.0",
4
+ "version": "2.8.1",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
@@ -33,6 +33,10 @@
33
33
  "48": "icons/icon48.png",
34
34
  "128": "icons/icon128.png"
35
35
  },
36
+ "options_ui": {
37
+ "page": "config-page-preview.html",
38
+ "open_in_tab": true
39
+ },
36
40
  "web_accessible_resources": [
37
41
  {
38
42
  "resources": [
@@ -38,6 +38,9 @@ body { width: 340px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
38
38
  .clients-info { font-size: 12px; color: #aaa; }
39
39
  .clients-info span { color: #4a9eff; }
40
40
 
41
+ .btn-full { width: 100%; background: linear-gradient(135deg, #4a9eff, #357abd); border: none; border-radius: 6px; padding: 10px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
42
+ .btn-full:hover { opacity: 0.85; }
43
+
41
44
  .footer { padding: 8px 16px; text-align: center; }
42
45
  .footer a { color: #666; font-size: 11px; text-decoration: none; }
43
46
  .footer a:hover { color: #4a9eff; }
@@ -70,6 +73,10 @@ body { width: 340px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
70
73
  <div class="clients-info" id="clientsInfo"></div>
71
74
  </div>
72
75
 
76
+ <div class="section">
77
+ <button class="btn-full" id="openConfigBtn">打开完整配置</button>
78
+ </div>
79
+
73
80
  <div class="footer">
74
81
  <a id="versionLink" href="https://github.com/nicepkg/cdp-tunnel" target="_blank"></a>
75
82
  </div>
@@ -110,6 +110,13 @@
110
110
  });
111
111
  });
112
112
 
113
+ var openConfigBtn = $('openConfigBtn');
114
+ if (openConfigBtn) {
115
+ openConfigBtn.addEventListener('click', function() {
116
+ chrome.tabs.create({ url: chrome.runtime.getURL('config-page-preview.html') });
117
+ });
118
+ }
119
+
113
120
  var versionLink = $('versionLink');
114
121
  if (versionLink) {
115
122
  var manifest = chrome.runtime.getManifest();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Bridge Chrome's debugger API to WebSocket — control your existing browser with Playwright/Puppeteer via CDP",
5
5
  "main": "server/proxy-server.js",
6
6
  "bin": "./cli/index.js",