Open calycekr opened 1 week ago
Makes a lot of sense to me! Let me know if someone wants to tackle this, I think putting an env variable PLAYWRIGHT_ADBLOCK=true
by default in the .env
which could be set to false
should work.
can i work on this? @nsarrazin
Sure thing @krakenftw
Just the confirm we need to be able toggle the playwright-adblocker?
Just using an env variable in .env
yes
@krakenftw const blocker = await PlaywrightBlocker.fromPrebuiltAdsAndTracking(fetch)
at 13 line
The part that causes unnecessary timeouts is here.
@calycekr Yeah, i did add a boolean env, and disabling blocker
based on that env. It has'nt been merged yet tho.
Hoping a response from @nsarrazin
There are many problems due to playwright in offline environment. I have to wait for playwright fetch timeout before the application is fully loaded.
ERROR (1399872): Failed to initialize PlaywrightBlocker from prebuilt lists
I need an option to turn it on and off. Please add an option to turn it off, not to deal with errors.