ZTE-Stat_Max(哥哥科技 Brother Tech)

https://github.com/ucxn/ZTE-Stat_Max

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
哥哥科技
Daily installs
0
Total installs
62
Ratings
2 0 0
Version
5.9.8
Created
2026-05-01
Updated
2026-05-14
Size
32.8 KB
License
GPL-3.0-or-later
Applies to

ZTE-Stat_Max by Brother Tech(哥哥科技)

VersionLicense: GPL 3.0  Platform

English | 简体中文

ZTE-Stat_Max (Author:Brother Tech/哥哥科技) is a Tampermonkey enhancement script specifically designed for the ZTE router Web UI management dashboard.

By taking over the underlying XML API data stream of the native Vue framework, this script reconstructs the UI layout of the "Network Management" and "Connected Devices" pages without breaking the official topology and structure. It introduces trapezoidal integration algorithms, an abnormal traffic radar, and a dual-track traffic alignment display, providing an dashboard for network engineers and power users.

A Web UI enhancement plugin for ZTE routers.Created by "Brother Tech(哥哥科技)". Verified compatible with: Nebula MAX Whole-House 2.5G Wired Main Router / BE 5100Pro+! Separately tracks uplink and downlink traffic, displays traffic ratio and up/down proportions, and combats P2P/PCDN upstream theft. Supports both 1000/1024 base systems and Mbps/GiB units. Enables global comparison between LAN and WAN traffic! Features a flattened device list for instant big-screen visualization. Everything you need is right here—no more tedious menu switching...

While the official Web dashboard is stable, its UX design for data visualization has some friction. For instance, real-time network speeds and historical accumulated traffic for devices are hidden behind secondary menus. You have to frequently click into specific devices to view them, making it impossible to form an intuitive, global comparison. The core purpose of this plugin is to "flatten" these hierarchies. It extracts the up/down network speeds of individual devices, the integrated traffic during the current session, and the underlying total accumulated throughput, pushing them all to the forefront of the main device list. Without any extra clicks, the network throughput status of all devices is clear at a glance.

✨ Features

  • Traffic & Ratio Statistics: Tracks the uplink and downlink traffic of individual devices separately, allowing you to view real-time traffic ratio rates and up/down proportions.
  • Abnormal Upload Monitoring: Detects up/down ratios and visually flags abnormal uploads, combating PCDN / P2P bandwidth theft.
  • Precise Unit Conversion: Strictly differentiates between network transmission rates and storage capacity. Supports both 1000/1024 base systems and displays in Mbps / GiB.
  • Global Data Comparison: Supports aggregate statistics and intuitive comparison between the internal network (LAN algebraic sum) and the public network (WAN port).
  • High-Precision Integral Traffic Tracking ⏱️ & UI Grid Refactoring 🖥️
  • Dual-Track Traffic Comparison: In addition to displaying the historical total throughput natively provided by the router interface, the frontend independently conducts high-frequency data sampling to track the actual traffic consumed while the page is open. Both metrics are displayed side-by-side for reference. Units are unified to the current session, focusing on the observability of changes.
  • Customization Support: Respects network engineering habits by allowing script variables to customize display logic for Base-1000 (Mbps) and Base-1024 (MiB/s).
  • 🛡️ Privacy Protection & UI Optimization:
    • Automatically masks sensitive MAC addresses and temporary IPv6 addresses during in-place DOM mutation rendering, ensuring safety when screen recording, capturing, or sharing network status.
    • Employs a forced bottom-alignment system based on Flexbox, fixing height discrepancies caused by CSS grids.
    • Trace-less injection. Does not break the native Vue state machine, ensuring browser rendering performance.

🔗 Symlinks

Anti P2P Steal

🚀 Installation Guide

Requirements

Before using this script, ensure your browser has a user script manager extension installed, such as:

Script Installation

  1. Click here to install the full version of ZTE-Stat_MaxInstall from GitHub      Install via ScriptCat
  2. Click "Install" or "Update" in the Tampermonkey popup interface.
  3. Log into your ZTE router's Web management dashboard, enter your admin password, and upon successful login, refresh the page and navigate to the "Network Management" or "Connected Devices" page. The script will activate automatically.

🧬 Important:Alternative Wake-up Entry

If it isn't working, please check theleft sidebar navigation,find the 🚀 哥哥科技面板(BroTech Panel) and click to open it; the functionality is essentially the same.

Please ensure the Tampermonkey extension is running correctly!!Specifically, the extension icon in your browser should be displaying a number! The tutorial for allowing userscript injection is shown in the image below.

NOTE:Via Browser (Mobile): Script/Plugin features DON'T WORK ?
👉 点此展开查看解决办法 Click here to view the solution
Due to limitations in Via Browser's rendering engine behavior, the default document-idle injection timing may fail to work properly.

Please open Via's script management page and change the execution timing to either document-startORdocument-end.

操作截图

💡 TIPS
If the script is still not taking effect, please refer to the following tutorial::

图文教程

📸 Screenshots

Xiaomi Reference ZTE Original Enhanced Version
Xiaomi Reference ZTE Original Enhanced Version

⚙️ Configuration

The script exposes a global CONFIG object at the top, allowing users to fine-tune it according to their specific network environment:

const CONFIG = {
    calcMode: 1,            // 1: Absolute multiplier mode (Uplink/Downlink), 0: Traditional percentage mode
    ratioExtremeUp: 10,     // Extreme upload trigger threshold (default > 1000%, triggers red ⚠️ alert)
    ratioWarnUp: 0.07,      // Heavy upload trigger threshold (default > 7%, triggers red highlight)
    ratioExtremeDown: 0.01, // Extreme download trigger threshold (default < 1%, triggers blue download multiplier display)

    // Chinese mapping dictionary for physical ports and wireless bands (can be customized based on your router model)
    portMap: {
        "eth1": "Port 1",
        "eth2": "Port 2",
        "eth3": "Port 3",
        "eth4": "Port 4",
        "wl0":  "Wi-Fi 2.4G",
        "wl1":  "Wi-Fi 5.2G",
        "wl2":  "Wi-Fi 5.8G"
    }
};

⚠️ Notes

  • This script only reformats and calculates the fetched API data on the frontend; it will not modify the router's underlying core configuration.
  • If your router's management address is a non-standard IP, please manually add it to the @match or @include header rules in the script.
  • This script is a pure frontend DOM injection and data reorganization tool. It does not involve modifying the ZTE router's underlying firmware.

Utilizing the Tampermonkey environment, the script makes concurrent requests to the router's vue_home_device_data_no_update_sess and vue_client_data APIs. To eliminate the lag caused by the official frontend's polling refresh, the script internally implements an independent timer via performance.now(), deriving highly accurate instantaneous traffic data. All UI modifications are executed via DOM Mutation on top of the original page's CSS framework, ensuring a native feel and seamless compatibility.

📄 License

GNU-GPL 3.0


Authored by Brother Tech