You are not logged in.

#1 2021-07-14 17:46:49

hybrid
Member
Registered: 2007-02-05
Posts: 262

ublock origin + chromium incognito mode

Hi,

I created a new chromium profile (chromium --user-data-dir=~/.config/chromium-tempprofile), installed ublock origin, activated the allow extension in incognito mode option. So far, so good.
But when I copy that very profile to /tmp and start chromium (I'll post my script for that below), the "use ublock origin extension in incognito mode" is disabled. Wtf is going on there, why is that?

if [ -d /tmp/chromium-tempprofile/ ]; then chromium -incognito --user-data-dir=/tmp/chromium-tempprofile --disk-cache-dir=/tmp/chromium-tempprofile-cache --enable-sandbox; else cp -ai ~/.config/chromium-tempprofile /tmp/ && chromium -incognito --user-data-dir=/tmp/chromium-tempprofile --disk-cache-dir=/tmp/chromium-tempprofile-cache --enable-sandbox; fi
  • chromium -incognito --user-data-dir=~/.config/chromium-tempprofile --disk-cache-dir=/tmp/chromium-tempprofile-cache --enable-sandbox #works, ublock origin is enabled in incognito mode

  • the first run of my script successfully copies the profile and runs the browser in incognito mode, but ublock origin is disabled in incognito mode

  • if I enable the extension to run in incognito mode in that session, subsequent runs of my script will have the extension enabled

I don't get it, maybe the option "enable extension to work in incognito mode" is saved outside of the --user-data-dir?

Offline

Board footer

Powered by FluxBB