Prevents automatic logout on the Huawei router interface and allows custom or unlimited session duration settings.
Huawei Router Anti-Logout is a utility Userscript designed to overcome the very short session timeout on Huawei routers (default: 5 minutes).
This script works in the background to send “heartbeat” signals and manipulate the browser timer, ensuring you stay logged in for as long as you need without worrying about being disconnected in the middle of configuration.
You have full control over how long the login session will last. No longer stuck with the factory default 5-minute limit.
Integrated directly with the script manager menu (Tampermonkey/Violentmonkey). You can change settings at any time without needing to edit the code.
This script has smart logic for custom time modes:
When you open the settings menu, you can enter the following values:
| Input | Mode | Description |
|---|---|---|
| 00 | Infinite (Unlimited) | (Recommended) The session will never end as long as the browser tab is open. Suitable for long-term monitoring. |
| 0 | Default | Script is disabled. The router will automatically log out after 5 minutes of inactivity (factory setting). |
| >5 | Custom (Minutes) | Enter a number (e.g., 60, 120). The session will last for that duration before automatically logging out. |
This script was developed and tested on:
Note: This script will most likely work on other Huawei router variants that use a similar web interface.
192.168.1.1).00 for unlimited).This script only manipulates the timer on the client side (browser) and sends standard keep-alive signals. This script does not change the permanent configuration in the router firmware.