https://github.com/unglaublicherdude/docker-selenium-chrome-plugins
How to run selenium/standalone-chrome with plugins
https://github.com/unglaublicherdude/docker-selenium-chrome-plugins
adblocker docker docker-image selenium selenium-chrome selenium-container
Last synced: about 2 months ago
JSON representation
How to run selenium/standalone-chrome with plugins
- Host: GitHub
- URL: https://github.com/unglaublicherdude/docker-selenium-chrome-plugins
- Owner: unglaublicherdude
- Created: 2018-04-05T09:56:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T10:17:55.000Z (about 8 years ago)
- Last Synced: 2025-07-15T12:39:04.072Z (11 months ago)
- Topics: adblocker, docker, docker-image, selenium, selenium-chrome, selenium-container
- Language: Shell
- Size: 1.84 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Run Selenium/Chrome-Standalone with Plugins
If you want to run plugins in selenium - chrome you have to transfer your plugins from an api client, to the selenium container.
You don't always want to use that, because you have to transfer the plugins with every session you are running.
To avoid the transfert you can build the plugin directly into the selenium container.
I provided a Dockerfile on how to easily do this. Just put the .crx-file into the `extensions/original-extension-files` folder and run a docker build.
The extension will be extracted to a folder `extensions/extracted-extensions` folder.
In this repo you find some examples like ublock origin.
## usage
Instead of the loadPlugin function of your driver you can now just use the AddArgument function.
```
options.AddArgument("--load-extensions=/data/extensions/disable-html5-autoplay,/data/extensions/fast-image-blocker,/data/extensions/flash-block-plus,/data/extensions/ublock-origin");
```