From eeb30fbe3760027617c121daa5251d7b1ae3b5cc Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 23 Mar 2026 15:13:05 +0100 Subject: [PATCH] Replace chrome with Firefox impersonation in script --- .github/workflows/links.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 8cab0a5..2d3f9e1 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -30,12 +30,13 @@ jobs: declare -A seen wget https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz tar -xzf curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz - sudo cp curl-impersonate-chrome /usr/local/bin/ + sudo cp curl-impersonate-ff /usr/local/bin/ + sudo cp curl-impersonate-ff109 /usr/local/bin/ check() { local url="$1" http - http=$(curl-impersonate-chrome -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000" + http=$(curl-impersonate-ff109 -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000" [[ "$http" == 2* ]] && return 0 - http=$(curl-impersonate-chrome -sSL -o /dev/null -w "%{http_code}" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000" + http=$(curl-impersonate-ff109 -sSL -o /dev/null -w "%{http_code}" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000" [[ "$http" == 2* ]] } while IFS= read -r line; do