Open laundmo opened 5 years ago
Sounds plausible -- what is involved?
Chocolatey can install .exe or .msi installers, but also run powershell to install. The package cvreation process is documented here: https://chocolatey.org/docs/create-packages
In this case i would think that making a pwoershell script that edits the chrome preferences json (if it has the developer mode option) with the path to the CRX and/or the registry keys would suffice (i am not familiar with the process chrome uses to install/load extensions). This is a article i found about pre-installed extensions in chrome: https://www.chromium.org/administrators/pre-installed-extensions
i hope this helps and im sorry i cant help more
I'd be willing to attempt a package for this. I've never made one for a chrome extension. I also, have an AU repo that can keep it up to date without changes to the release process (Or I can assist in integrating a package into your CI)
Sure, that would be great -- what would be required from our end?
If it goes like others I've done, then at most I'd need help ensuring it worked after I wrote scripts to install it. I've got a couple other packages I'm working on at the moment, but I think I can start this one next week.
Excellent -- thanks
@digitalcoyote That would be awesome! I can help with testing once you finished.
I'm finally taking a look into this (after a much longer delay than I expected).
per https://stackoverflow.com/questions/10211772/how-to-install-a-chrome-extension-programmatically this may be a bit of an issue now that AdNauseam is not on the chrome web store. If anyone finds a way around this, I'd be happy to assist. The method used by ublock-origin uses the chrome web store ID when installing.
If you are using chocolatey , then chances are that you have the Chrome enterprise MSI installed. This install listens to GPO's. You can Install AdNauseam in Chrome without Developer mode enabled. Simply by adding the following Registery string:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist] "1"="pnjfhlmmeapfclcplcihceboadiigekg;https://rednoise.org/adnauseam/updates.xml"
For the Edge Beta you can set the same key in this location. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist
Edit: If you want to do this with Chocolatey the package would only have to set the key, and the most resent version will be pulled from that updates.xml location
Yes, please add package to repository.
AdNauseam.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist]
"1"="pnjfhlmmeapfclcplcihceboadiigekg;https://rednoise.org/adnauseam/updates.xml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist]
"1"="pnjfhlmmeapfclcplcihceboadiigekg;https://rednoise.org/adnauseam/updates.xml"
Chocolatey is a package manager for windows, which makes it very easy to install supported packages.
It can install broswer plugins too as seen with
choco install ublockorigin-chrome
To make installing Ad-nauseam easier for chrome users and generally automatable, i would like to suggest providing AdNauseam as a chocolatey package.