I can control ChromeDriver to install an extension (with .crx file).
.
If you install Adblock Plus on your browser, then your filter in the "add your own filter" tab (in "Adblock Plus Option") will be empty.
.
What I want here is: how do I add my filter to a .crx file before I install it? (Edit source, file, ... or any other way)
My filter example is:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Code: Select all
facebook.com###u_0_1i
facebook.com##._5hn6
youtube.com##.ytp-ce-element
youtube.com##.my-personal-button
pinterest.com##div[style="min-height: 400px; padding: 20px 10px;"]
pinterest.com##div[style="background-color: rgb(255, 255, 255); border-radius: 8px; position: relative; text-align: center; width: 404px; margin: auto; min-height: 520px; box-shadow: rgba(0, 0, 0, 0.45098) 0px 2px 10px;"]
That mean, immediately after installing Adblock Plus in my web browser, my custom filter was added there.
I'm happy to receive any suggestions. Thank you very much!