available on npm
npm install chrome-keep-focus
Make Chrome think it's in focus when in reality it's not and you're busy.
All of these are valid cmd and do the same thing.
chrome-keep-focus
My automation was failing when i switched tabs but after I had ChatGPT write up this script I was able to get it working again. I only did like 1 test and seemed working.