The browser extension: the devtools panel on any VK page
The VKMA Devtools extension shows the same panel as the dev-server plugin, on pages the plugin cannot reach: the published build of a mini app, a game, a third-party mini app. No dev server is needed: the extension itself collects the data on the host page.
What it does
The extension works on the VK host pages: vk.com, vk.ru and their subdomains, web.vk.me, dzen.ru, ok.ru, okcdn.ru, gameroom.games.mail.ru, vkvideo.ru and max.ru. Each of them gets a floating action button (FAB) that opens the panel with its Timeline, Execute and Clients sections. These are the sections of the dev-server panel: the bridge event log, sending events to the app and the list of connected pages.
The history lives as long as the host page is open. A reload of the page starts a new history.
Capture modes
The mode is picked for every page that holds a mini app:
- Direct. The app runs
@vkma.dev/bridge. The extension reads its event log. - Spy. The app runs another bridge,
@vkontakte/vk-bridgeincluded. The extension listens to the messages between the app and the host. Events and execute work the same way.
In spy mode the page’s name in the panel header carries a sniffer mark.
Surfaces
- The floating action button (FAB) on every host page. Opens the panel over the page. It yields when the side panel is open. In a window up to 560px wide the panel takes the whole screen and closes from its own header (× or Escape).
- The toolbar icon. The full panel in a tab, with every VK tab at once: one shared event timeline.
- The side panel, Chrome only. Opened from the FAB panel’s toolbar, behind the ⋯ button on a narrow panel. Firefox has no side panel: there the floating button and the tab do the job.
Install from the repository
The extension is not in the extension stores yet. It is built from the repository. You need Node >= 22.18 and pnpm:
git clone --recursive https://github.com/pajecawav/vkma.git
cd vkma
pnpm install
pnpm build
pnpm --filter @vkma.dev/devtools-extension build:chromeThe last command leaves the Chrome manifest in apps/devtools-extension/dist. The full build ends with the Firefox manifest, which is why it is repeated for Chrome.
Chrome
Open chrome://extensions, turn on “Developer mode”, click “Load unpacked” and pick the apps/devtools-extension/dist directory. Chrome 142 or newer is required.
Firefox
Build the version with the Firefox manifest and load it as a temporary add-on:
pnpm --filter @vkma.dev/devtools-extension build:firefoxOpen about:debugging, choose “This Firefox”, click “Load Temporary Add-on…” and pick apps/devtools-extension/dist/manifest.json. Firefox does not grant the extension access to the sites on load. After loading, allow the listed sites once on the extension’s page.
Ready-made archives for both browsers are in apps/devtools-extension/web-ext-artifacts/.
For development the extension runs through web-ext: pnpm --filter @vkma.dev/devtools-extension start in Chromium, or start:firefox in Firefox.
Limits
- The extension does not see a mini app opened as a top-level page without a VK host. It works only inside the listed hosts.
- The history does not survive a reload of the host page.