Page 1 of 1

How to export all surrogate lines from about:config?

Posted: Sat Jul 30, 2016 11:19 am
by Guest
There are a lot of noscript.surrogate[...] lines coming with noscript. I have no idea what their purpose is. Is there a possibility to export all about:config entries to a text file or maybe to reset all those lines in one go? Earlier versions of firefox came with a all.js file. But this file doesn't exits anymore.

Re: How to export all surrogate lines from about:config?

Posted: Sat Jul 30, 2016 4:03 pm
by barbaz
Those are the Surrogate Script.

If you want to batch reset all those lines, honestly I'd probably go the not-recommended route of completely quit Firefox and delete all noscript.surrogate.* lines out of prefs.js and user.js (if it exists). They will then be overwritten with the defaults when you next restart Firefox.

Re: How to export all surrogate lines from about:config?

Posted: Sun Jul 31, 2016 11:36 pm
by Thrawn
If you don't know about surrogate scripts already, then why would you have altered them (and thus need to reset them)?

Re: How to export all surrogate lines from about:config?

Posted: Mon Aug 01, 2016 9:19 pm
by johnscript
On a related note, I can't actually see in the prefs.js files all the surrogate entries that are visible in about:config using the "surrogate" keyword in the search field.

Re: How to export all surrogate lines from about:config?

Posted: Mon Aug 01, 2016 9:31 pm
by barbaz
johnscript wrote:On a related note, I can't actually see in the prefs.js files all the surrogate entries that are visible in about:config using the "surrogate" keyword in the search field.
Because prefs.js contains only user-set preferences. It doesn't contain any default preferences.
about:config shows both default and user-set preferences.

If you want the surrogates preferences listing in the Mozilla preference file format, you can unzip the NoScript xpi and look inside the defaults/preferences/ directory.

Re: How to export all surrogate lines from about:config?

Posted: Thu Aug 04, 2016 12:38 pm
by Guest
barbaz wrote:If you want the surrogates preferences listing in the Mozilla preference file format, you can unzip the NoScript xpi and look inside the defaults/preferences/ directory.
Yes, make your own *.xpi. :)

In the meantime i've deleted all surrogates. 98% are - in my opinion - nonsense. But that's just my opinion. :)

Re: How to export all surrogate lines from about:config?

Posted: Thu Aug 04, 2016 4:34 pm
by barbaz
Guest wrote:In the meantime i've deleted all surrogates. 98% are - in my opinion - nonsense. But that's just my opinion. :)
Your browser, your choice. Enjoy your broken websites or tracker-filled internet ;)

Re: How to export all surrogate lines from about:config?

Posted: Thu Aug 04, 2016 5:34 pm
by fatboy
@Guest
If I understand correctly, you did not want "to reset all those lines", and you want to disable them.
Then you could use noscript.surrogate.enabled;false.
And if you do not want to use the default surrogates and use only custom surrogates,
you can export the NS settings to *.txt file and open it in Notepad ++.
To find ^("surrogate\.\S+\.sources":)".+",$
Replace on (\1)"",

Re: How to export all surrogate lines from about:config?

Posted: Sun Aug 07, 2016 9:56 am
by Guest
fatboy wrote:@Guest
If I understand correctly, you did not want "to reset all those lines", and you want to disable them.
Then you could use noscript.surrogate.enabled;false.
Thanks for this tip, but i would like to use my own surrogates. So this is not a option.
fatboy wrote:@Guest
And if you do not want to use the default surrogates and use only custom surrogates,
you can export the NS settings to *.txt file and open it in Notepad ++.
To find ^("surrogate\.\S+\.sources":)".+",$
Replace on (\1)"",
Good tip, i will try it. Thanks.