NoScript and Firefox Sync

Ask for help about NoScript, no registration needed to post

Re: NoScript and Firefox Sync

Postby LargePrime » Sun Nov 23, 2014 7:20 pm

Can we add this to a bug tracker or issue tracker or something?
sabret00the wrote:It's been years and this still isn't fixed properly. I can only thank the fact that I had a computer that hadn't been connected at the time of syncing a new device as the new device nuked my setting on my main laptop.
Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0
LargePrime
 

Re: NoScript and Firefox Sync

Postby jawz101 » Tue Dec 23, 2014 10:06 pm

anything I can find about FF Sync. Apologies if it muddies the discussion with irrelevant documentation:

https://wiki.mozilla.org/Services/Sync/Addon_Sync
Why is Functionality Limited to Add-ons from addons.mozilla.org?
First, this is only the default behavior. The services.sync.addons.trustedSourceHostnames preference is a comma-delimited list to allow other trusted hostnames.
I went ahead and added informaction.com here but since NoScript is on the AMO site I don't know that it's necessary unless I'm downloading development builds from here. Looks like Mozilla pretty much says it may work or it may not.

https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Firefox_Sync/Syncing_custom_preferences
"The whitelist is determined as follows: for each services.sync.prefs.sync.<pref> preference that is set to true, Firefox Sync will sync the <pref> preference. For example, if your add-on had a pref called extension.frobnaz.foobar, to have it synced, create a bool preference called services.sync.prefs.sync.extension.frobnaz.foobar and set it to true. The most convenient place for this would be your add-on's default preferences, though if you want to give the user a choice to opt-in, you can also do it programmatically. See adding_preferences_to_an_extension."
... if you toggle noscript.sync.enabled to true it does creates a tone of additional config flags starting with services.sync.prefs.sync.noscript.* and they're all true so I dunno. It looks like it's supposed to work

I also glimpsed Adblock Plus' code here https://github.com/adblockplus/adblockplus/tree/master/lib
namely the sync.js and synchronizer.js but that's about as far as I got.

or something in how Firefox uses sync in its own app
https://hg.mozilla.org/mozilla-central/file/b297a6727acf/services/sync

I dunno.
if it sync'd capability.policy.maonoscript.sites and noscript.untrusted I'd be happy since that's where all of the crap I whitelist and blacklist live. Could we just have these 2 dropped out to a flat file and use some cloud sync and say to heck with Firefox's syncing mechanism? In that 1st site they pretty much say that's one of the 3 suggested solutions- ie build your own sync engine.
Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0
jawz101
Junior Member
 
Posts: 47
Joined: Sun Jul 10, 2011 11:13 pm

Re: NoScript and Firefox Sync

Postby jawz101 » Tue Jan 20, 2015 1:16 am

hope this fixes it but here's what I came up with
in about:config make sure noscript.sync.enabled is set to true
it creates a bunch of additional prefs set to true for a bunch of entries starting with
services.sync.prefs.sync.noscript.xyz

create another boolean called
services.sync.prefs.sync.capability.policy.maonoscript.sites
and set it to true


noscript probably needs to be updated to account for all of its configs if it's going to work. Other than that, I'm pretty sure it'd be good to go :D
you can sync any config option if you create a new boolean services.sync.prefs.sync.[the config name] and set it to true


test by opening about:config on 2 computers set up to sync noscript with the above settings
on computer A: in Noscript options, whitelist add a site a.aaa or something
force a sync or wait a while
on computer B: in about:config search for that site you added and it should show up under capability.policy.maonoscripts.sites
if it doesn't, force a sync or wait a while. If you see it it's also under the whitelist on computer B's noscript options as well


another value I question is services.sync.prefs.sync.addons.ignoreUserEnabledChanges
Firefox source code mentions if set to true it only syncs installed addons but not their individual prefs. Mine's set to the default true but it worked regardless.
line 44
https://hg.mozilla.org/mozilla-central/file/b297a6727acf/services/sync/services-sync.js
44 // If true, add-on sync ignores changes to the user-enabled flag. This
45 // allows people to have the same set of add-ons installed across all
46 // profiles while maintaining different enabled states.
47 pref("services.sync.addons.ignoreUserEnabledChanges", false);
48
49 // Comma-delimited list of hostnames to trust for add-on install.
50 pref("services.sync.addons.trustedSourceHostnames", "addons.mozilla.org");


This trustedSourceHostnames is where I think you'd have to add informaction.com if you wanted to sync dev builds

Searching the thread someone else commented about this missing preference 4 years ago.
Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
jawz101
Junior Member
 
Posts: 47
Joined: Sun Jul 10, 2011 11:13 pm

Re: NoScript and Firefox Sync

Postby Sylwester » Sat Feb 21, 2015 12:58 am

This is really annoying. I have numerous firefox instances (about 15-20) around with sync from long before i installed NoScript. Whenever I start one them it won't have noscript and it seems to remove all noscript whitelist from all my instances.

When it happenes I need to start totally from scratch and I'm very close to uninstalling NoScript since it will take me weeks before stuff works again.

It should have some way to safeguard against a cleaned out config.. It's not likely that someone justy wants every whitelisting to get removed so perhaps you can work around this?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
Sylwester
 

Re: NoScript and Firefox Sync

Postby jawz101 » Tue Mar 03, 2015 5:45 pm

try setting or creating these 3 about:config entries

booleans set to true:
1) noscript.sync.enabled
2) services.sync.prefs.sync.capability.policy.maonoscript.sites

paste the following to the end of the value for
3) services.sync.addons.trustedSourceHostnames
,informaction.com



1) turns on sync for all of the noscript prefs
2) turns it on for the whitelist. for some reason #1 isn't catching this preference
3) whitelists synching of the noscript addon settings if you use dev builds.
Mozilla/5.0 (Windows NT 5.1; rv:35.0) Gecko/20100101 Firefox/35.0
jawz101
Junior Member
 
Posts: 47
Joined: Sun Jul 10, 2011 11:13 pm

Re: NoScript and Firefox Sync

Postby m_c » Sun Jun 14, 2015 12:49 am

Firefox Sync syncs the configuration but it is reseted to default if a new machine is added to firefox sync. There is no backup and Firefox does not allow to restore an old version. The only way to avoid this is to export the preferences and import it again after machine adding. :(
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
m_c
Junior Member
 
Posts: 24
Joined: Mon Aug 24, 2009 11:53 am

Re: NoScript and Firefox Sync

Postby PackElend » Tue Jun 23, 2015 2:16 pm

same here :evil:

Stefan
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
PackElend
 
Posts: 2
Joined: Tue Jun 23, 2015 2:13 pm

Re: NoScript and Firefox Sync

Postby srebmar » Tue Aug 18, 2015 4:40 pm

I recently added a new computer and turned on noscript sync and lost my settings. If this is a Firefox bug then I recommend Noscript tell us DO NOT USE FIREFOX SYNC to synchronize Noscript since it doesn't work with Noscript. If it a problem with NoScript then PLEASE FIX IT!!
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
srebmar
 
Posts: 2
Joined: Thu Sep 05, 2013 12:22 am

Re: NoScript and Firefox Sync

Postby Thrawn » Wed Aug 19, 2015 3:31 am

As far as I know, it's not a problem with NoScript.

If you read through this thread, I think it's clear that the overall advice is, don't use sync with NoScript.
======
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:40.0) Gecko/20100101 Firefox/40.0
User avatar
Thrawn
Senior Member
 
Posts: 3088
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia

Re: NoScript and Firefox Sync

Postby Strykerraven » Wed Apr 27, 2016 10:17 am

Doh I came here to request exactly this and came across this thread.
A little background: I have Firefox sync to numerous uses, For example I dual boot. Today I installed Arch Linux (long time coming and well worth it!!)
I always forget to backup my allows for NoScript and always get turned off by starting over. My own fault but if NoScript synced this it would be a life saver hence why I came and found this thread :X
I'll read through it but just wanted to share what brought me here today.

Thanks for a good addon!
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Strykerraven
 

Sync issue

Postby noscriptor » Fri Apr 28, 2017 10:31 am

This topic has been discussed before at least here:
https://forums.informaction.com/viewtopic.php?f=7&t=6056&p=78215&hilit=sync#p78215
but I would like to ask again since it's been 2 years since then and to me this issue persists.

I followed these instructions from there:
try setting or creating these 3 about:config entries
booleans set to true:
1) noscript.sync.enabled
2) services.sync.prefs.sync.capability.policy.maonoscript.sites
paste the following to the end of the value for
3) services.sync.addons.trustedSourceHostnames
,informaction.com


but only after it was already too late (I was forced to make refresh) since I have already lost my whitelist.

To make every time a new whitelist for multiple computers is very annoying.

So, what's the current status of the sync issue? Is there a permanent solution for this?
If not, are there any plans to solve it?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36
noscriptor
 
Posts: 1
Joined: Fri Apr 28, 2017 10:06 am

Re: NoScript and Firefox Sync

Postby barbaz » Fri Apr 28, 2017 4:00 pm

Threads merged.
*Always* check the changelogs BEFORE updating that important software!
Board search is currently partially broken: https://forums.informaction.com/viewtopic.php?f=14&t=21752
Workaround: use your favorite search engine, add site:forums.informaction.com to your query
-
barbaz
Senior Member
 
Posts: 7743
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript and Firefox Sync

Postby larry@... » Sat Aug 12, 2017 10:58 am

OK ... so what happened in the new release of Nightly? No support for NoScript.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0
larry@...
 

Re: NoScript and Firefox Sync

Postby godfuture » Wed Aug 16, 2017 11:18 am

Same for me. My whitelist is gone when adding fresh instances. Dont like it at all!
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
godfuture
 

Re: NoScript and Firefox Sync

Postby PackElend » Mon Oct 23, 2017 5:54 pm

same here
As I have to repair my profile occasionally (messed up with add-ons, cross-browser-sync) I lost a plenty of whitelists.
The very first was done back in 2011, any chance that it may get solved soon?

The only workaround might be XMarks extension as explained in this forum and on www.pskl.us but it not working in >FF54 :cry:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
PackElend
 
Posts: 2
Joined: Tue Jun 23, 2015 2:13 pm

PreviousNext

Return to NoScript Support

Who is online

Users browsing this forum: No registered users and 10 guests