I've been trying to get uBlock Origin installed for my users, running Firefox 52.6 ESR on Debian. I successfully have a silent-install happening on by:
- placing the .xpi as /usr/lib/firefox-esr/distribution/extensions/[email protected] on all our systems, and making sure every user has read permissions to that file - rm -r ~/.mozilla - starting Firefox as an unprivileged user, which copies uBlock into ~/.mozilla/firefox/$PROFILE/extensions/[email protected] It was a bit tricky to figure out, especially because you can't really test it without wiping away your profile completely, but it seems to be reliable now. I have pref("extensions.autoDisableScopes", 3); set in /usr/lib/firefox-esr/browser/defaults/preferences/firefox.js, which came with Debian's firefox-esr package, but if I didn't have that I would have had to add a file to that folder, say /usr/lib/firefox-esr/browser/defaults/preferences/extensions.js, with // Necessary comment pref("extensions.autoDisableScopes", 3); // necessary newline: (this is described at https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment#Configuration but those docs are pretty confusing and seem to be at least partly out of date). Now I have a new challenge: I want to define uBlock's default blocklists; its default list is alright, but I want to crank up the adblocking in order to save our poor machines' RAM. Marco Gaiarin <[email protected]> wrote: > Some addons (i've found only ABP, Ad-Block Plus for now) need some > post-activation explicit setup (eg, ABP need to ask what blocklist > download), and you have to do that, user by user, or sometimes setup > some pre-cooked settings (js) files. My installed uBlock has made ~/.mozilla/firefox/$PROFILE/browser-extension-data/[email protected]/storage.js, which seems to contain all its preferences. If I manually re-copy storage.js to the same place in a fresh profile, uBlock picks it up and has my fuller blacklist defined. I tried copying browser-extension-data/ to /usr/lib/firefox-esr/distribution/ (and making sure the permissions are correct and making sure to wipe my profiles each time) but Firefox ignores it. So, my question is: is there a canonical way to hand out add-on configuration? For addons that use the Firefox preference system, it's easy: just add files to /usr/lib/firefox-esr/browser/defaults/preferences/. But it seems that Firefox has been heading towards more and more isolation -- which is a good thing -- while forgetting that extensions have settings too. I'm stumped. I would really rather not write a cronjob that syncs storage.js into every home folder every 10 minutes. There's got to be a better way. Thank you for your time and any clues you can toss my way, -- Nick Guenther Soutiens Technique IT Support Santropol Roulant Inc _______________________________________________ Enterprise mailing list [email protected] https://mail.mozilla.org/listinfo/enterprise To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise or send an email to [email protected] with a subject of "unsubscribe"

