~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
27 lines · 1.0 KB Raw History
#!/bin/sh
set -eu

if [ -n "${PLAYWRIGHT_CHROMIUM_EXECUTABLE:-}" ]; then
	exec "$PLAYWRIGHT_CHROMIUM_EXECUTABLE" \
		--user-data-dir=/tmp/zds-chromium-insecure-profile \
		--disable-web-security \
		--ignore-certificate-errors \
		--allow-running-insecure-content \
		--disable-features=BlockInsecurePrivateNetworkRequests,PrivateNetworkAccessSendPreflights,PrivateNetworkAccessRespectPreflightResults \
		"$@"
fi

for exe in "$HOME"/Library/Caches/ms-playwright/chromium-*/chrome-mac-arm64/Google\ Chrome\ for\ Testing.app/Contents/MacOS/Google\ Chrome\ for\ Testing; do
	if [ -x "$exe" ]; then
		exec "$exe" \
			--user-data-dir=/tmp/zds-chromium-insecure-profile \
			--disable-web-security \
			--ignore-certificate-errors \
			--allow-running-insecure-content \
			--disable-features=BlockInsecurePrivateNetworkRequests,PrivateNetworkAccessSendPreflights,PrivateNetworkAccessRespectPreflightResults \
			"$@"
	fi
done

echo "Playwright Chromium executable not found; run: bunx playwright install chromium" >&2
exit 127