Skip to content

Instantly share code, notes, and snippets.

View Turkidev's full-sized avatar

Turki Mohammed Alturki Turkidev

View GitHub Profile
@Turkidev
Turkidev / huawei-ax3-dns-interceptor.user.js
Last active February 25, 2026 04:41
Huawei AX3 Router – DNS override interceptor (fix hidden DNS fields in web UI)
/**
* Huawei AX3 DNS Interceptor (hardened)
* - Catches Request objects and string URLs
* - Matches by pathname to survive host changes
* - Safely clones & rewrites JSON bodies
*
* Edit these:
*/
const PAGE_IP = location.hostname || "192.168.100.1"; // your router IP (auto-uses current host)
const CUSTOM_DNS1 = "1.1.1.1"; // primary DNS