Skip to content

Instantly share code, notes, and snippets.

@Xsir0
Xsir0 / patch-chrome-local-state.sh
Created January 29, 2026 15:03
Patch Chrome Local State for all local profiles: set is_glic_eligible=true (recursive), force variations_country=us, update variations_permanent_consistency_country. Auto backup + restart Chrome if needed.
#!/usr/bin/env bash
set -euo pipefail
need_cmd() { command -v "$1" >/dev/null 2>&1 || { echo "Missing: $1" >&2; exit 1; }; }
need_cmd jq
OS="$(uname -s)"
if [[ "$OS" != "Darwin" ]]; then
echo "This script is macOS-only (Darwin). Current: $OS" >&2
exit 1