-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extensions.ublock0.adminSettings issue with Firefox 40. #592
Comments
The string in
You can validate JSON compliance with this online tool: http://jsonlint.com/. |
oops, closed by mistake. Hmm, the string does validate, as I checked this when I first tried this feature using the very site you mention, and it worked fine with Firefox 39, and the string is still the same with Firefox 40, I've even checked it again with multiple json validators. While looking at the string with notepad++ it shows 's as EMs, and thats at column 1028, the string was copied from within about:config, though notepad++ doesn't show this within my mozilla.cfg file. |
That seems to have been the problem, I corrected that, and now it works, guess Firefox changed something, got more strict etc. |
@Nurple are you still using a .cfg file to load the |
@bmkaiser Yep, sure am, I was just messing with it the other day. Do you already have a working cfg?, but are just having problems with extensions.ublock0.adminsettings bit?. It took me a few goes to get it working, I'll give it another go later, and this time write down what I did. |
@Nurple yes, we have a working .cfg that we use for other settings and are only having issues with extensions.ublock0.adminsettings. |
You said it works manually, so you just need to copy the section from your prefs.js in that profile, and use that in the .cfg. This it what mine looks like. http://pastebin.com/SgJtT4pA |
Thank you! Your pastebin link is really helpful. It wasn't escaping the double quotes properly. The last part I'm trying to figure out that I'm not sure how you addressed (because I don't think you had to), is how to handle the line returns in netWhitelist for each definition. When I export the uBO configuration, it looks like this:
|
This worked for me,
What I do is setup uBlock the way I want it, export the settings, clean up / remove bits I don't want, then compact the json, and add that to extensions.ublock0.adminSettings through Firefox, and save what's written to my pref.js to my .cfg. I'm more likely doing steps I don't need to do. |
Heya,
The extensions.ublock0.adminSettings feature doesn't seem to works with Firefox 40.
OS: Windows 8 x64.
uBlock0: 1.0.0.1 from AMO.
I had it working fine with Firefox 39, new profiles would pick up the settings, as well as using the uBlock0 reset to defaults option within uBlock0.
I'm seeing this error in the Browser Console when I try resetting uBlock0;
SyntaxError: JSON.parse: bad control character in string literal at line 1 column 1028 of the JSON data
Stack trace:
µBlock.restoreAdminSettings@chrome://ublock0/content/js/storage.js:734:20
µBlock.restart@chrome://ublock0/content/js/start.js:244:5
@chrome://ublock0/content/js/start.js:277:1
I'm deploying the settings using the method shown here;
https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment#Configuration
The text was updated successfully, but these errors were encountered: