Automatic import feature request

Bug reports and enhancement requests
Post Reply
akci
Posts: 6
Joined: Thu Nov 23, 2017 9:57 am

Automatic import feature request

Post by akci » Fri Mar 02, 2018 4:27 pm

It would be very useful if on startup NoScript would check the users profile for noscript_data.txt and automatically import it if present.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

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

Re: Automatic import feature request

Post by barbaz » Fri Mar 02, 2018 4:32 pm

Why?
*Always* check the changelogs BEFORE updating that important software!
-

akci
Posts: 6
Joined: Thu Nov 23, 2017 9:57 am

Re: Automatic import feature request

Post by akci » Fri Mar 02, 2018 4:51 pm

The primary benefit would be to make it easier to replicate NoScript settings across multiple computers.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

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

Re: Automatic import feature request

Post by barbaz » Fri Mar 02, 2018 5:23 pm

I don't think it's technically possible in WebExtensions.

Anyway, if replicating NoScript config is the goal, sounds simpler to just copy storage-sync.sqlite to the other computers' Firefox profile. That's where NoScript (and any other extensions using chrome.storage.sync) stores its settings.
(Be sure to completely quit Firefox *before* copying files to or from a profile.)
*Always* check the changelogs BEFORE updating that important software!
-

akci
Posts: 6
Joined: Thu Nov 23, 2017 9:57 am

Re: Automatic import feature request

Post by akci » Fri Mar 02, 2018 5:45 pm

Working with storage-sync.sqlite will not work for my situation but thanks for the suggestion.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

akci
Posts: 6
Joined: Thu Nov 23, 2017 9:57 am

Re: Automatic import feature request

Post by akci » Fri Mar 02, 2018 11:57 pm

Would it be possible to read the settings from prefs.js the way NoScript did before version 10?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

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

Re: Automatic import feature request

Post by barbaz » Sat Mar 03, 2018 2:07 am

akci wrote:Would it be possible to read the settings from prefs.js the way NoScript did before version 10?
No, WebExtensions can't access prefs. WebExtensions really are much more limited than legacy extensions. :(
*Always* check the changelogs BEFORE updating that important software!
-

Post Reply