A lightweight Chrome extension that prevents automatic logout by refreshing your page after periods of inactivity.
Many web applications automatically log you out after 30 minutes of inactivity. This extension keeps your session alive by automatically refreshing the page when you've been inactive for 25 minutes, preventing those frustrating timeouts and saving you from repeatedly logging in.
- 🔄 Auto-refreshes page after 25 minutes of inactivity
- 👁️ Monitors real user activity
- 📊 Console logging to track activity status
- ⚡ Lightweight and efficient
- 🎯 Targeted to specific website (easily configurable)
-
Clone or download this repository:
git clone https://github.com/omincron/tab-refresher.git
-
Open Chrome and navigate to:
chrome://extensions/ -
Enable Developer mode (toggle in the top-right corner)
-
Click Load unpacked
-
Select the
tab-refresherfolder -
The extension is now installed and active! ✅
- The extension monitors your activity on the configured website
- Every minute, it checks how long you've been inactive
- If you've been inactive for 25+ minutes, it automatically refreshes the page
- This sends a request to the server, keeping your session alive
- After the refresh, the timer resets
To change the target website, edit manifest.json:
"matches": ["https://pylon176.pylonflex.gr//*"]Replace with your website URL pattern.
To adjust the inactivity timeout, edit content.js:
const INACTIVITY_LIMIT = 25 * 60 * 1000; // 25 minutes (in milliseconds)Open the browser console (F12 → Console) to see activity logs:
- Activity detection messages
- Inactivity status updates every minute
- Refresh notifications
- Chrome/Chromium-based browsers (Chrome, Edge, Brave, etc.)
- Manifest V3 compliant
- Works on desktop and mobile browsers
MIT License - Feel free to use and modify for your needs.
Issues and pull requests are welcome!