This script automates tab switching and refreshing in Firefox Developer Edition on Linux Ubuntu.
It integrates with Webpack DevServer to reload the correct tab when the development server starts.
- Uses
xdotool
to search for tabs and activate them. - Automatically refreshes the Webpack tab if found.
- Falls back to opening a new browser tab if necessary.
- Linux Ubuntu
- Firefox Developer Edition
xdotool
installed (sudo apt install xdotool
)
- Clone this Gist or copy the scripts into your project.
- Ensure
xdotool
is installed. - Update your
webpack.config.js
to include the middleware. - Run your Webpack DevServer and let the script handle tab management.
Happy coding! 🚀