Where are NoScript options?

Ask for help about NoScript, no registration needed to post
User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Where are NoScript options?

Post by Lucas Malor » Sat May 18, 2019 6:46 pm

If I search "noscript" in about:config, I get no results.

Where the NoScript preferences are stored now?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

fatboy
Junior Member
Posts: 47
Joined: Fri Jul 25, 2014 6:56 am
Contact:

Re: Where are NoScript options?

Post by fatboy » Sun May 19, 2019 10:31 am

…\profile\storage-sync.sqlite
…\profile\browser-extension-data\{73a6fe31-595d-460b-a920-fcc0f8843232}\storage.js

Click "Export" -> noscript_data.txt
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 SM/2.38 NS/2.9.0.12

User avatar
therube
Ambassador
Posts: 7366
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Where are NoScript options?

Post by therube » Sun May 19, 2019 10:33 am

storage-sync.sqlite
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5

User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Re: Where are NoScript options?

Post by Lucas Malor » Sun May 19, 2019 10:40 am

Mh. And what if I want to change manually I NoScript option? Can I edit storage.js or must I edit the sqlite db?

This is due to the Firefox update?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

fatboy
Junior Member
Posts: 47
Joined: Fri Jul 25, 2014 6:56 am
Contact:

Re: Where are NoScript options?

Post by fatboy » Sun May 19, 2019 12:16 pm

> Can I edit storage.js…
Yes
… or must I edit the sqlite db?
After editing storage-sync.sqlite in Notepad++ — UNTRUSTED and CUSTOM are missing.
After editing storage-sync.sqlite in SQLiteDatabaseBrowserPortable — everything is fine.

It is better to edit noscript_data.txt and click "Export".
UPD: "Import", sorry.
Last edited by fatboy on Sun May 19, 2019 2:07 pm, edited 1 time in total.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 SM/2.38 NS/2.9.0.12

User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Re: Where are NoScript options?

Post by Lucas Malor » Sun May 19, 2019 1:46 pm

fatboy wrote:
Sun May 19, 2019 10:31 am
…\profile\browser-extension-data\{73a6fe31-595d-460b-a920-fcc0f8843232}\storage.js
I have no storage.js, but a storage.js.migrated. I think I could create a storage.js but it seems to me not safe.
fatboy wrote:
Sun May 19, 2019 10:31 am
…\profile\storage-sync.sqlite
Editing a sqlite db only to change preferences? Absurd. This is a choice of Maone of a choice of Firefox?
fatboy wrote:
Sun May 19, 2019 10:31 am
Click "Export" -> noscript_data.txt
This seems to me the simpler option, even if I'm forced to trust the developer that he exports all the settings.

Anyway, I remember that NoScript had a lot of hidden features, really interesting. Where they are gone?
fatboy wrote:
Sun May 19, 2019 12:16 pm
After editing storage-sync.sqlite in Notepad++ — UNTRUSTED and CUSTOM are missing.
Well, you're lucky... :mrgreen:

Offtopic: I suggest you Atom instead of Notepad++ and DBeaver instead of SQLiteDatabaseBrowserPortable
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

User avatar
therube
Ambassador
Posts: 7366
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Where are NoScript options?

Post by therube » Sun May 19, 2019 1:51 pm

…\profile\browser-extension-data\{73a6fe31-595d-460b-a920-fcc0f8843232}\storage.js
So what, that is only a "backup" of pre-existing NoScript 5 data (if it existed at all), that is used, once (or maybe after a NoScript Reset?), to import into NoScript 10 ?
And after that, it's essentially immaterial?

choice of Maone of a choice of Firefox?
Well the fact that extensions cannot store their prefs in prefs.js, is Mozilla.
So then you have to work with the constructs that Mozilla (Quantum) allows.
I imagine that there may be several methods to accomplish that (?), but which, would be chosen by Maone.

Editing a sqlite db only to change preferences? Absurd.
I believe the "expected" way to do that would be through:
NoScript | Options -> Advanced --> Debug (ugly)
(The expected way, Mozilla way, is that you can't do that!)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5

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

Re: Where are NoScript options?

Post by barbaz » Sun May 19, 2019 2:49 pm

NoScript 10 stores its data through chrome.storage.sync API, which uses storage-sync.sqlite as its backend.

The storage.js was the old backend of chrome.storage.local, which IIRC NoScript falls back to if chrome.storage.sync is not available. Starting with Firefox 66, chrome.storage.local is migrated to an IndexedDB-based backend - viewtopic.php?f=18&t=25102
Lucas Malor wrote:
Sun May 19, 2019 1:46 pm
I remember that NoScript had a lot of hidden features, really interesting. Where they are gone?
Not implemented yet.
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Re: Where are NoScript options?

Post by Lucas Malor » Sun May 19, 2019 3:44 pm

barbaz wrote:
Sun May 19, 2019 2:49 pm
Starting with Firefox 66, chrome.storage.local is migrated to an IndexedDB-based backend - viewtopic.php?f=18&t=25102
Oh my god... this is a nonsense. "Improved startup time"? For few lines of JSON? So why Linux continues to use plain old text files for preferences, mh?

Firefox is SLOW because it's also written in Javascript in some of its core parts. Chromium is fast because is primarily written in C++. Until Mozilla Devs will not show the tragic truth, and will start to rewrite the bottlenecks in Rust, they can play with extensions and make the life difficult to everyone, users and extension developers, but they will never reach the speed of Chromium.

The ONLY reason I don't switched to Chromium is NoScript and the fact you can disable CSS files on-the-fly. But there will be the time someone will write NoScript for Chromium...
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

User avatar
therube
Ambassador
Posts: 7366
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Where are NoScript options?

Post by therube » Sun May 19, 2019 4:20 pm

The ONLY reason I don't switched to Chromium is NoScript and
NoScript now also works in Chromium...
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5

User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Re: Where are NoScript options?

Post by Lucas Malor » Sun May 19, 2019 4:40 pm

Oh. But I remember Maone wrotes that there was some big problems with the Chromium APIs, and a true blocking of JS was not possible. Something is changed in the meanwhile? NoScript on Chrome is effective as NoScript on Firefox?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

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

Re: Where are NoScript options?

Post by barbaz » Sun May 19, 2019 5:05 pm

They should be equally effective. NoScript for Chromium just has fewer features, e.g. missing XSS filter, because Chromium has more limited WebExtensions APIs than Firefox.
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Re: Where are NoScript options?

Post by Lucas Malor » Sun May 19, 2019 5:11 pm

Mmmrf... I'll check any NoScript update to see if Chromium devs has added an API for XSS. For now I'll remain with Fx. For now...
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

musonius
Senior Member
Posts: 95
Joined: Sun Jul 08, 2018 5:38 pm

Re: Where are NoScript options?

Post by musonius » Mon May 20, 2019 8:12 am

Lucas Malor wrote:
Sun May 19, 2019 3:44 pm
But there will be the time someone will write NoScript for Chromium...
The time has already come. The guy who wrote NoScript for Chromium is Giorgio Maone and the Chrome version can be found here.

The Chrome version misses XSS protection, though.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

User avatar
Lucas Malor
Senior Member
Posts: 68
Joined: Tue Nov 09, 2010 2:01 pm
Contact:

Re: Where are NoScript options?

Post by Lucas Malor » Mon May 20, 2019 9:10 pm

No XSS, no Chromium :mrgreen:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Post Reply