Prefer Chromium for turnstilePatch on headless servers
Google Chrome blocks --load-extension, so CF tokens stay empty under Xvfb. Auto-select Chromium when the extension is present, install/ detect chromium in start.sh, and document browser_prefer overrides.
This commit is contained in:
1 parent
cd4a2351ae
commit
cf6c0d2b4d
7 files changed
+141
-45
No files matched your search
@@ -233,11 +233,11 @@ def create_standalone_page(
|
||||
|
||||
# Prefer Chromium: Google Chrome blocks --load-extension (turnstilePatch).
|
||||
for cand in (
|
||||
"/snap/bin/chromium",
|
||||
"/usr/bin/chromium",
|
||||
"/usr/bin/chromium-browser",
|
||||
"/usr/bin/google-chrome",
|
||||
"/snap/bin/chromium",
|
||||
"/usr/bin/google-chrome-stable",
|
||||
"/usr/bin/google-chrome",
|
||||
):
|
||||
if os.path.isfile(cand) or os.path.islink(cand):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user