ABP and FFX deployment

Place to exchange experience about rolling out Adblock Plus to many computers, preconfiguring the extension etc.

ABP and FFX deployment

Postby Darknoon » Thu Oct 16, 2014 1:13 pm

Hi ! :)
There was a long time i didn't update adblock and firefox. All before was ok when i put adblock IDfolder in "%programfiles%/Mozilla Firefox/distribution/bundle" folder (Need to do this). With the last version of ABP and FFX 24 it's not working, ABP doesn't launch.
Any Idea ?

Thx
Darknoon
 
Posts: 4
Joined: Thu Oct 16, 2014 1:03 pm

Re: ABP and FFX deployment

Postby Gingerbread Man » Fri Oct 17, 2014 6:33 am

Hello,

I've never heard of a …/distribution/bundle subfolder. The correct folder for installing extensions globally is <installation folder>\browser\extensions
Additionally, the add-on file name must be the same as the add-on ID. In the case of Adblock Plus, the file must be named {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}.xpi

https://developer.mozilla.org/en-US/Add-ons/Installing_extensions
User avatar
Gingerbread Man
 
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: ABP and FFX deployment

Postby Darknoon » Fri Oct 17, 2014 3:42 pm

Hi ! :)
/Distribution/bundle is the Global Extension Folder for mass deployment. No need User Validation to install xpi and extensions are hidden in the extension manager. I use this since FFX 17... ;)
All my extensions are ok (CCK, Ietab 2, etc.) except Adblock Plus. :/

Found a link :

http://mike.kaply.com/2012/02/09/integr ... o-firefox/
Darknoon
 
Posts: 4
Joined: Thu Oct 16, 2014 1:03 pm

Re: ABP and FFX deployment

Postby Gingerbread Man » Sat Oct 18, 2014 6:50 am


Mike Kaply wrote:Important Notes: If it is a restartless add-on or an SDK add-on or if the add-on depends on the AddonManager API, this method will NOT work.

Adblock Plus is a restartless add-on.
User avatar
Gingerbread Man
 
Posts: 1339
Joined: Fri Aug 12, 2011 5:28 am

Re: ABP and FFX deployment

Postby Darknoon » Mon Oct 20, 2014 11:03 am

D'oh ....
I had the answer under my eyes ... This is a bad news for us.
Thx GingerBread Man
Darknoon
 
Posts: 4
Joined: Thu Oct 16, 2014 1:03 pm

Re: ABP and FFX deployment

Postby Darknoon » Wed Oct 22, 2014 11:57 am

Hi ! :)
I've found a workaround to install ABP silently.
- Create a mozilla.cfg in the c:\program files\Mozilla Firefox folder :
//comment
pref("extensions.autoDisableScopes", 0);
pref("extensions.enabledScopes", 15);
pref("extensions.shownSelectionUI", true);
- Create a local-settings.js in the c:\program files\Mozilla Firefox\defaults\pref :
// comment
pref('general.config.obscure_value', 0);
pref("general.config.filename", "mozilla.cfg");
- extract the {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}.xpi found in the user profile after installation in the c:\program files\Mozilla Firefox\browser\extensions folder.
- Modify the default prefs for ABP (c:\program files\Mozilla Firefox\browser\extensions\ {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}\defaults\prefs.js :
ex. Changing the path of patterns : pref("extensions.adblockplus.patternsfile", "C:\\Program Files\\Mozilla Firefox\\Adblockplus\\patterns.ini");
(with double \\)
- Add a locked value (with cck in my case) in firefox to fix the version of ABP and avoid the firsttimerun tab : extensions.adblockplus.currentVersion

:)
Darknoon
 
Posts: 4
Joined: Thu Oct 16, 2014 1:03 pm

Re: ABP and FFX deployment

Postby ecolint » Wed Mar 11, 2015 2:33 pm

Dear all,

This seems to not work anymore, at least on my side.

In my Mozilla.cfg I added:
pref("extensions.adblockplus.patternsfile", "C:\\Program Files (x86)\\Mozilla Firefox\\distribution\\patterns\\patterns.ini");

But the Adblock Plus Filter Subscriptions on my Firefox remains empty...

anyone knows how to debug please?
ecolint
 
Posts: 20
Joined: Fri Jan 24, 2014 12:22 pm

Re: ABP and FFX deployment

Postby ecolint » Mon Mar 16, 2015 11:20 am

Dear all,

I've just followed the steps mentioned there: https://adblockplus.org/en/faq_install

And it works for me.
ecolint
 
Posts: 20
Joined: Fri Jan 24, 2014 12:22 pm

Re: ABP and FFX deployment

Postby FR6 » Wed Jul 22, 2015 10:26 am

Hi, what did you do exactly to achieve your goal ?
I have the same needs, defined extensions.adblockplus.patternsfile and.... too, the list remains empty

Thx
FR6
 
Posts: 8
Joined: Wed Jul 22, 2015 9:25 am

Re: ABP and FFX deployment

Postby ecolint » Wed Jul 22, 2015 10:43 am

Hello,

What I did :

1) download the extension
2) unzip the extension
3) edit file prefs.js
4) add this line :
pref("extensions.adblockplus.patternsfile", "C:\\Program Files (x86)\\Mozilla Firefox\\distribution\\patterns\\Adblock Plus\\patterns.ini");
--> for the patterns.ini, setup your firefox ABP then copy the file from your roaming mozilla profile to clients, in my case : C:\Program Files (x86)\Mozilla Firefox\distribution\patterns\Adblock Plus\patterns.ini
5) copy the extension folder modified to clients, in my case : C:\Program Files (x86)\Mozilla Firefox\distribution\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

That's all

Hope this help
ecolint
 
Posts: 20
Joined: Fri Jan 24, 2014 12:22 pm

Re: ABP and FFX deployment

Postby FR6 » Wed Jul 22, 2015 11:15 am

Ooops, i was editing directly the param in about:config thinking it would do the job....
Customising the extension works far much better !
Thanks a lot !
FR6
 
Posts: 8
Joined: Wed Jul 22, 2015 9:25 am

Re: ABP and FFX deployment

Postby FR6 » Thu Jul 30, 2015 3:12 pm

Hi again,

i confirm that it works like a charm but...... the addon has now been updated automatically to 2.6.10 and it's no longer working as expected. It seems that pattern file take in account is the one by default located in %appdata%\mozilla\firefox\profilexxxx\adblockplus.
Have you experienced the same issue ? How did you manage to fix it ?

Thanks a lot
FR6
FR6
 
Posts: 8
Joined: Wed Jul 22, 2015 9:25 am

Re: ABP and FFX deployment

Postby ecolint » Tue Aug 25, 2015 1:59 pm

Hi,

What I noticed is that the update replace the folder {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} located in "C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxx.default\extensions" by the file {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}.xpi.

That process removes our modified prefs.js file.

I extracted the new prefs.js and it is completely different that the old one.

Please find here an official response to that issue:
https://issues.adblockplus.org/ticket/2860
ecolint
 
Posts: 20
Joined: Fri Jan 24, 2014 12:22 pm


Return to Large scale deployments of ABP

Who is online

Users browsing this forum: No registered users and 19 guests