Focus stealing can be very annoying and disruptive to workflow and productivity.
This mod can be used to prevent any app from stealing focus when it opens a window. App-specific examples can be found below.
By default, the mod will be injected into all processes and unload when there's no matching application in settings. To reduce overhead, enable Ignore mod inclusion/exclusion lists and add each executable to Custom process inclusion list in the Advanced options menu.
Application Executables must be one or more exe names, exe paths or path globs.Required Arguments can be used to only include processes with specific command line arguments. All arguments must match the process.Excluded Arguments can be used to exclude processes with specific command line arguments. Any matching argument excludes the process.Window Title is a title prefix of the window you want to prevent focus being stolen by. Leave it blank to target all windows.Never Focus prevents manual activation, so it should only be enabled if you never want to interact with the window.
The Chromium DevTools window is especially annoying, as it opens asynchronously and has to be reopened every time you apply changes while working on development of a Chrome extension or an Electron-based app. You can now auto reload changes and have one or more DevTools windows reopen without your editor losing focus.
Make sure Application Executables includes the process you are using (such as electron.exe, brave.exe or chrome.exe).
You can leave Required Arguments blank unless you only want to target a specific instance of an app, such as an electron app which you launch with custom argument during development.
You should set Excluded Arguments to --type for efficiency so that only the main chromium process which creates windows is hooked.
Developer Tools will target all DevTools windows.Developer Tools - https://example.com will target only DevTools for that site.Developer Tools - chrome-extension://<extension_id> will target only DevTools windows for that extension.