How to export all surrogate lines from about:config?

Discussions about the Application Boundaries Enforcer (ABE) module
Guest

How to export all surrogate lines from about:config?

Post by Guest » Sat Jul 30, 2016 11:19 am

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.
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

barbaz
Senior Member
Posts: 9788
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Sat Jul 30, 2016 4:03 pm

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.
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
Thrawn
Senior Member
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

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

Post by Thrawn » Sun Jul 31, 2016 11:36 pm

If you don't know about surrogate scripts already, then why would you have altered them (and thus need to reset them)?
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

johnscript
Junior Member
Posts: 49
Joined: Wed Feb 20, 2013 1:49 pm

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

Post by johnscript » Mon Aug 01, 2016 9:19 pm

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.
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

barbaz
Senior Member
Posts: 9788
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Mon Aug 01, 2016 9:31 pm

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.
*Always* check the changelogs BEFORE updating that important software!
-

Guest

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

Post by Guest » Thu Aug 04, 2016 12:38 pm

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. :)
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

barbaz
Senior Member
Posts: 9788
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz » Thu Aug 04, 2016 4:34 pm

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 ;)
*Always* check the changelogs BEFORE updating that important software!
-

fatboy
Senior Member
Posts: 59
Joined: Fri Jul 25, 2014 6:56 am
Contact:

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

Post by fatboy » Thu Aug 04, 2016 5:34 pm

@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)"",
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 SM/2.38 NS/2.9.0.12

Guest

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

Post by Guest » Sun Aug 07, 2016 9:56 am

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.
Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Post Reply