Spletno mesto bo delovalo z omejenimi zmožnostmi, medtem ko na njem izvajamo vzdrževalna dela za vas. Če članki ne rešijo vaše težave in želite zastaviti vprašanje, naša skupnost za podporo čaka na vas na @FirefoxSupport na Twitterju in na /r/firefox na Redditu.

Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

Setup defaults preferences for Adblock Plus data and patterns in prefs.js

  • 3 odgovori
  • 1 ima to težavo
  • 4 ogledi
  • Zadnji odgovor od cor-el

more options

Hi,

I'd like to distribute Firefox with some pre-installed preferences (including Adblock Plus settings) in my organization.

Fallowing preferences setup via prefs.js don't work:

   pref("extensions.adblockplus.data_directory", "\\\\" + getenv("USERDNSDOMAIN") + "\\App\\Firefox\\ESR\\adblockplus\\data\\")
   pref("extensions.adblockplus.patternsfile", "\\\\" + getenv("USERDNSDOMAIN") + "\\App\\Firefox\\ESR\\adblockplus\\patterns.ini");


Is Firefox allowing to use USERDNSDOMAIN or USERDOMAIN varibles in prefs.js? Is this syntax OK? Could someone help me to figure why it is not working?

Hi, I'd like to distribute Firefox with some pre-installed preferences (including Adblock Plus settings) in my organization. Fallowing preferences setup via prefs.js don't work: pref("extensions.adblockplus.data_directory", "\\\\" + getenv("USERDNSDOMAIN") + "\\App\\Firefox\\ESR\\adblockplus\\data\\") pref("extensions.adblockplus.patternsfile", "\\\\" + getenv("USERDNSDOMAIN") + "\\App\\Firefox\\ESR\\adblockplus\\patterns.ini"); Is Firefox allowing to use USERDNSDOMAIN or USERDOMAIN varibles in prefs.js? Is this syntax OK? Could someone help me to figure why it is not working?

Vsi odgovori (3)

more options

Spremenil guigs

more options

My problem has nothing to do with GPO, I did put my settings in CFG file.

As I describe in first post - I did set file and folder location for data and patterns of Adblock Plus in CFG file. AS long as I set absolute UNC path Adblock works fine, but as soon as I change path to use USERDOMAIN varible in path Adblock Plus can't find location of its files.

When I print USERDOMAIN varible in command line, it is displayed correctly. So I am almost sure it is something wrong with parsing config file by Firefox.

more options

You can't use getenv in a prefs.js file, but you can use it in a mozilla.cfg auto-configuration file.