From 90f02e896601b4f8af522fe7dae3c61aa9437995 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sun, 16 Nov 2025 10:11:11 +0100 Subject: [PATCH] fix github links etc --- extension-playwright/README.md | 2 +- extension-playwright/manifest.json | 2 +- extension-playwright/package.json | 6 +++--- extension-playwright/src/background.ts | 6 ++++++ extension-playwright/src/relayConnection.ts | 2 +- extension-playwright/vite.sw.config.mts | 4 ++++ 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/extension-playwright/README.md b/extension-playwright/README.md index 963c14d..261f269 100644 --- a/extension-playwright/README.md +++ b/extension-playwright/README.md @@ -54,7 +54,7 @@ Playwriter MCP runs locally in your browser and does not send any data to extern ## Support -For issues, feature requests, or contributions, visit the [GitHub repository](https://github.com/microsoft/playwright-mcp). +For issues, feature requests, or contributions, visit the [GitHub repository](https://github.com/remorses/playwriter). ## License diff --git a/extension-playwright/manifest.json b/extension-playwright/manifest.json index f0c72e3..058e3a0 100644 --- a/extension-playwright/manifest.json +++ b/extension-playwright/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Playwriter MCP", - "version": "0.0.47", + "version": "0.0.48", "description": "Control Chrome via MCP using CDP events. Connect Playwright without spawning new Chrome instances.", "permissions": [ "debugger", diff --git a/extension-playwright/package.json b/extension-playwright/package.json index abe12da..b86be1c 100644 --- a/extension-playwright/package.json +++ b/extension-playwright/package.json @@ -1,13 +1,13 @@ { "name": "@playwright/mcp-extension", - "version": "0.0.46", + "version": "0.0.48", "description": "Playwright MCP Browser Extension", "private": true, "repository": { "type": "git", - "url": "git+https://github.com/microsoft/playwright-mcp.git" + "url": "git+https://github.com/remorses/playwriter.git" }, - "homepage": "https://playwright.dev", + "homepage": "https://github.com/remorses/playwriter", "engines": { "node": ">=18" }, diff --git a/extension-playwright/src/background.ts b/extension-playwright/src/background.ts index cb612b2..7ba5d31 100644 --- a/extension-playwright/src/background.ts +++ b/extension-playwright/src/background.ts @@ -33,6 +33,12 @@ async function resetDebugger() { } resetDebugger() +chrome.runtime.onInstalled.addListener((details) => { + if (details.reason === 'install') { + void chrome.tabs.create({ url: 'welcome.html' }) + } +}) + const icons = { connected: { path: { diff --git a/extension-playwright/src/relayConnection.ts b/extension-playwright/src/relayConnection.ts index 0510c74..968cdb5 100644 --- a/extension-playwright/src/relayConnection.ts +++ b/extension-playwright/src/relayConnection.ts @@ -43,7 +43,7 @@ export class RelayConnection { private _ws: WebSocket; private _closed = false; private _onCloseCallback?: () => void; - private _onTabDetachedCallback?: (tabId: number, reason: chrome.debugger.DetachReason) => void + private _onTabDetachedCallback?: (tabId: number, reason: `${chrome.debugger.DetachReason}`) => void constructor({ ws, onClose, onTabDetached }: { ws: WebSocket; diff --git a/extension-playwright/vite.sw.config.mts b/extension-playwright/vite.sw.config.mts index 8821f53..3eb2728 100644 --- a/extension-playwright/vite.sw.config.mts +++ b/extension-playwright/vite.sw.config.mts @@ -33,6 +33,10 @@ export default defineConfig({ { src: resolve(__dirname, 'manifest.json'), dest: '.' + }, + { + src: resolve(__dirname, 'welcome.html'), + dest: '.' } ] })