autokap 1.3.21 → 1.3.22

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.
Files changed (2) hide show
  1. package/dist/browser.js +16 -2
  2. package/package.json +1 -1
package/dist/browser.js CHANGED
@@ -885,11 +885,25 @@ export class Browser {
885
885
  }
886
886
  // Kiosk + zero-position anchor for Xvfb: Chromium normally renders its
887
887
  // own toolbar/tabbar in headed mode, which would appear at the top of
888
- // every clip. `--kiosk` removes all UI; `--window-position=0,0` and
889
- // `--window-size` make the page fill the Xvfb screen exactly.
888
+ // every clip. `--kiosk` removes the address bar + tab strip;
889
+ // `--window-position=0,0` and `--window-size` make the page fill the
890
+ // Xvfb screen exactly. The `--disable-features` block kills the
891
+ // separate "infobar" surfaces (translate suggestion, save-password
892
+ // prompt, autofill banner, "Chrome is being controlled by automated
893
+ // software" warning) — these render OUTSIDE kiosk's chrome and would
894
+ // otherwise show up at the top of every clip captured via x11grab.
895
+ // CDP screenshot capture (Mac/Win/local Linux) hits the page surface
896
+ // directly so it never sees these; only ffmpeg x11grab does.
890
897
  const xvfbWindowArgs = isLinuxWithGpu ? [
891
898
  '--kiosk',
892
899
  '--window-position=0,0',
900
+ '--disable-features=Translate,TranslateUI,AutofillServerCommunication,InfoBars',
901
+ '--disable-infobars',
902
+ '--disable-blink-features=AutomationControlled',
903
+ '--disable-translate',
904
+ '--no-default-browser-check',
905
+ '--no-first-run',
906
+ '--noerrdialogs',
893
907
  ] : [];
894
908
  const clipArgs = [
895
909
  ...baseArgs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autokap",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "AI-powered CLI tool for capturing clean screenshots of websites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",