    localStorage.setItem('myip_check_mode', 'false');
            update_mode_icon();
            clearAllIntervals();
            init_browser_mode();
        } else {
            use_router_mode = true;
            localStorage.setItem('myip_check_mode', 'true');
            update_mode_icon();
            clearAllIntervals();
            init_router_mode();
        }
    }
    
    function update_mode_icon() {
        var modeIcon = document.getElementById('mode-icon');
        var rect = modeIcon.query