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 »

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: 10841
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
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 »

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 »

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: 10841
Joined: Sat Aug 03, 2013 5:45 pm

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

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

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

Post 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. :)
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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 ;)
*Always* check the changelogs BEFORE updating that important software!
-
fatboy
Senior Member
Posts: 82
Joined: Fri Jul 25, 2014 6:56 am
Contact:

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

Post 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)"",
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 »

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