Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Privacy Extentions #952

Closed
MaazBinMusa opened this issue Aug 28, 2021 · 4 comments
Closed

Privacy Extentions #952

MaazBinMusa opened this issue Aug 28, 2021 · 4 comments

Comments

@MaazBinMusa
Copy link
Contributor

MaazBinMusa commented Aug 28, 2021

Is there any support of privacy extensions? I used seleniums install_addon and gave it an xpi of UBO. It seemed to load the extension just fine.

However I am unable to change selected filter lists. Previously updating storage.js file would do the trick. However I am unable to go around this problem at the moment.

@vringar
Copy link
Contributor

vringar commented Aug 28, 2021

Hey,
Have a look at #941
Basically, you have to install the add-on manually on a preferably fresh profile, then package up that and set it as the seed_profile for your crawl.

@MaazBinMusa
Copy link
Contributor Author

MaazBinMusa commented Aug 29, 2021

Hey thanks!

I am instead doing this in deploy_firefox.py after webdriver is launched.

driver.install_addon(os.path.join(root_dir,'uBlock0@raymondhill.net.xpi'), temporary=True)

I have an xpi at this directory and it is loading it fine.

My only concern is if the browser restarts will it load the extension?

@vringar
Copy link
Contributor

vringar commented Aug 30, 2021

I think it won't persist.
You can try by writing a command with assert false in the execute function, that should force a restart and you should be able to verify

@MaazBinMusa
Copy link
Contributor Author

I set reset to true in the execute_command_sequence function and it seems to still load the extension. Not sure where it would not persist otherwise

@vringar vringar closed this as completed Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants