
.png)
List(base64enc::base64encode("/Users/admin/Downloads/Adguard-AdBlocker_v2.5.11.

To use a base encoded crx I used the following code: I ran the following code to use the profile: library(RSelenium)Ĭprof <- getChromeProfile("/private/var/folders/c2/d97mz0250bg08rr4g2znxk7m0000gq/T/.5SA1/", "Profile 1") You can see the profile path listed here. The profile is created in folder which can be found by browsing to chrome://version whilst using the profile. I created a profile by adding a person on chrome "seltestprof". Jsonlite::base64_enc(readBin(tmpfile, "raw", (tmpfile)$size)) If you wish to encode with jsonlite: tmpfile <- "C:/Users/john/Downloads/Adguard-AdBlocker_v2.5.11.crx" List(base64enc::base64encode("C:/Users/john/Downloads/Adguard-AdBlocker_v2.5.11.crx")) You can get the chrome crx file from for example (the id currently for adguard adblocker is: bgnkhhnnamicmpeenaelnjfhikgbkllg) once you have the crx file you will need to base64 encode it. It will not only remove annoying ads but also secure your privacy with advanced tracking protection. You can also add extensions by base 64 encoding the relevant crx file. AdGuard is an ultra-efficient ad blocker for Safari.

RD <- rsDriver(verbose = F, extraCapabilities = cprof) You can pass the extraCapabilities argument to the rsDriver function: cprof /Library/Application Support/Google/Chrome", "Default")
