Skip to content

Windows Window Style

import {
restyleChromeWindowForProcess,
restoreChromeWindowRegionForProcess,
startWindowRestyleWatcher,
} from "webotron/plugins/windows-window-style";
  • restyleChromeWindowForProcess(processId, options?)
  • restoreChromeWindowRegionForProcess(processId, options?)
  • startWindowRestyleWatcher(processId, options?)
const result = restyleChromeWindowForProcess(processId, {
hideTitleBar: true,
removeResizableFrame: true,
});
if (result.ok) {
const watcher = startWindowRestyleWatcher(processId, { hideTitleBar: true });
// ... later
watcher.stop();
}
OptionTypePurpose
hideTitleBarbooleanRemove browser title bar visuals.
removeResizableFramebooleanRemove default resize frame.
topMostbooleanKeep window above others.
clipTopPx / clipBottomPxnumberApply clipping to specific edges.
waitMsnumberMax wait while locating target window.
  • Hides or restores title bars and window frames.
  • Applies clipping regions and top-most behavior.
  • Watches for window changes when the browser process restarts.