Huawei Router Anti-Logout

Prevents automatic logout on the Huawei router interface and allows custom or unlimited session duration settings.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Mochamad Adi
今日安裝
0
安裝總數
0
評價
0 0 0
版本
5.0
建立日期
2025-11-28
更新日期
2025-11-28
尺寸
6.2 KB
授權條款
MIT
腳本執行於

⏳ Huawei Router Anti-Logout

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.

✨ Key Features

1. 🔓 Flexible Session Duration

You have full control over how long the login session will last. No longer stuck with the factory default 5-minute limit.

2. ⚙️ Easy Configuration Menu

Integrated directly with the script manager menu (Tampermonkey/Violentmonkey). You can change settings at any time without needing to edit the code.

  • Access: Click the Tampermonkey icon > Select “⚙️ Session Duration”.

3. 🧠 Smart Keep-Alive Logic

This script has smart logic for custom time modes:

  • If you set the time to 60 minutes, the script will keep the session active for 55 minutes.
  • In the last 5 minutes, the script will stop working and let the router's built-in timer run normally until logout. This makes the logout behavior feel more natural.

🎮 Configuration Mode

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.

🛠️ Compatibility

This script was developed and tested on:

  • Device: Huawei HG6145D2
  • Firmware: WKE2.094.443A01
  • Browser: Chrome, Edge, Firefox (with Tampermonkey/Violentmonkey)

Note: This script will most likely work on other Huawei router variants that use a similar web interface.


📦 How to Use

  1. Installation: Install this script using Tampermonkey or a similar extension.
  2. Login: Log in to the Huawei router admin page (usually 192.168.1.1).
  3. Check Status: Open the browser console (F12) to view the script status log (Optional).
  4. Change Settings:
    • Click the Tampermonkey icon in the browser toolbar.
    • Under the script name “Huawei Router Anti-Logout,” click the ⚙️ Session Duration menu.
    • Enter the desired duration (e.g., type 00 for unlimited).
    • The page will automatically refresh to apply the new settings.

⚠️ Disclaimer

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.