#
Addons
In the Camoufox Python library, addons can be loaded with the addons
parameter.
Camoufox takes extracted addons. To load an .xpi
file, rename it to a .zip
file, extract it, and pass the extracted folder.
from camoufox.sync_api import Camoufox
with Camoufox(addons=['/path/to/addon', '/path/to/addon2']) as browser:
page = browser.new_page()
#
Default Addons
Camoufox will automatically download and use the latest uBlock Origin with custom privacy/adblock filters to help with ad circumvention.
You can also exclude default addons with the exclude_addons
parameter:
from camoufox.sync_api import Camoufox
from camoufox import DefaultAddons
with Camoufox(exclude_addons=[DefaultAddons.UBO]) as browser:
page = browser.new_page()