docker: firefox: privacy.resistFingerprinting fixes #261

https://github.com/vogler/free-games-claimer/issues/261#issuecomment-1868385830

Docker container will ask/fill email, challenge captcha, ask/fill password, challenge captcha again.
This commit is contained in:
Ralf Vogler 2023-12-26 17:52:18 +01:00
parent 105f6f414a
commit baeaaa64f8

View file

@ -12,6 +12,13 @@ echo "Build: $NOW"
# https://bugs.chromium.org/p/chromium/issues/detail?id=367048
rm -f /fgc/data/browser/SingletonLock
# Firefox preferences are stored in $BROWSER_DIR/pref.js and can be overridden by a file user.js
# Since this file has to be in the volume (data/browser), we can't do this in Dockerfile.
mkdir -p /fgc/data/browser
# fix for 'Incorrect response' after solving a captcha correctly - https://github.com/vogler/free-games-claimer/issues/261#issuecomment-1868385830
echo 'user_pref("privacy.resistFingerprinting", true);' >> /fgc/data/browser/user.js
# TODO disable session restore message?
# Remove X server display lock, fix for `docker compose up` which reuses container which made it fail after initial run, https://github.com/vogler/free-games-claimer/issues/31
# echo $DISPLAY
# ls -l /tmp/.X11-unix/