trypst wrote:If I delete the thousands of sites of the trusted and untrusted lists it returns to a normal dimension (80kb).
I have looked at my Profiles. In all, the prefs.js are between 20kb and 30kb.
I am not a typical browser, I have NoScript (NS), RequestPolicy (RP) and Classic Theme Restorer (CTR) on all my Profiles.
My Whitelists in NS and in RP are both short, I 'Temp allow' when I need to.
I do most of my general browsing in an Aurora Profile (this one).
I have two other Aurora Profiles for special tasks: e.g. I use one
only for web mail.
I also have Release Profiles. All are very similar. All
start with, when I create them,
my 'standard short Whitelists' (for NS and RP). I Import these (I'll say more below).
With the 'special tasks' Profiles I use a different colour for the "Active Tab",
set using Classic Theme Restorer (CTR), to remind me which Profile I'm using.
I start all my Profiles using a short cut to use the correct Profile e.g. for Profile "20-TestNR" to use
Code: Select all
C:\Users\UserNameHere\AppData\Roaming\Mozilla\Firefox\Profiles\v0kx56co.20-TestNR
The short cut properties would be (for Windows 7 64 bit OS, using Firefox 32 bit):
Code: Select all
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -profile
"C:\Users\UserNameHere\AppData\Roaming\Mozilla\Firefox\Profiles\v0kx56co.20-TestNR" -no-remote
So I can run several instances of Aurora and/or Firefox at once.
See also:
Starting your Mozilla application with a specified profile
http://kb.mozillazine.org/Starting_your ... ed_profile
trypst wrote:Hi, I have a firefox profile that I backup regularly and I've been using for almost 10 years. In time I learned to keep it clean and I never had a problem with it.
So do I.
I also backup my Noscript Settings.
Noscript Options, General (Tab), Export ==> Exports all your NoScript Settings.
NoScript Options, Whitelist (Tab), Export ==> Exports just your Whitelist.
Both RequestPolicy and Classic Theme Restorer also have 'Export Settings' type functions.
All 3 Add-ons use simple text files for these Settings.
If I want a new Profile, to try something out, I make a new Profile.
Then I add NS, RP and CTR.
Then I Import the Settings (from the TXT files).
I can then try other add-ons, other Settings etc.
trypst wrote:So I have 2 questions:
1. Is there any (fast) way to clear the lists of long-dead websites?
I've not done this so
at your own risk you might be able
to 'hack the Exported Settings' and then Import them.
IIRC, from reading here, the 'Import' of the Whitelist ADDS to the Whitelist.
So, suppose you want to keep the untrusted list but just have a new short Whitelist.
Here is my idea of one way you could do this:
First,
backup your NoScript Settings and Whitelist:
Noscript Options, General (Tab), Export ==> Exports all your NoScript Settings.
Let us call this file "Main-Profile-NS-Options-Settings.txt".
NoScript Options, Whitelist (Tab), Export ==> Exports just your Whitelist.
Let us call this file "Main-Profile-NS-Whitelist.txt".
Second,
set up a new Profile "2".
Make a shortcut, with the "-no-remote" switch, so that you can run it at the
same time as your Main Profile.
Add NS.
Adjust the Whitelist (so that you can check what you have done).
Also make at least one change to the NS Settings.
By adjust the Whitelist, I suggest removing some of the default domains.
Also, make at least one "Untrusted" item.
For example you could remove all the
paypal entries from the Whitelist.
For example you could make paypal Untrusted.
This Whitelist will be much shorter than your 'built up over time' Whitelist.
My 'default NS Whitelist' is less than 1kb.
Let us call this Export file "2-short-NS-Whitelist.txt".
Also Export the NS Settings to "2-short-NS-Options-Settings.txt".
Third,
set up another new Profile "3", with a shortcut for it as well.
Add NS.
Remove all the white list, there are some 'grey items' that you can't remove, and then
Import the Whitelist from "2-short-NS-Whitelist.txt".
Now, you will only have the "2" Whitelist (with no paypal).
You will not have the 'changed Settings' from "2".
If you look at
"Main-Profile-NS-Options-Settings.txt" and
"Main-Profile-NS-Whitelist.txt" you will see that all of the Whitelist is
in the "Main-Profile-NS-Options-Settings.txt".
It will be very near the end.
Look also at
"2-short-NS-Options-Settings.txt" and
"2-short-NS-Whitelist.txt", which might be easier.
I expect that, in the Settings file "2-short-NS-Options-Settings.txt"
the Whitelist will start with:
Code: Select all
"whitelist":"addons.mozilla.org ...
and end at:
In the "2-short-NS-Whitelist.txt" you will NOT have these last two items:
Also, take note of where
is in these files. "2-short-NS-Whitelist.txt" will have it.
In "2-short-NS-Options-Settings.txt" it is in another place
(away from the Whitelist) called:
So, suppose you want to keep the untrusted list but just have a new short Whitelist.
Edit "Main-Profile-NS-Options-Settings.txt", by following these steps:
1. Find the place where it says:
Code: Select all
"whitelist":"addons.mozilla.org ...
2. Delete all the text, after the "addons.mozilla.org (you need addons) up to
3. Paste in, from "2-short-NS-Whitelist.txt"
all of the 'short Whitelist' (i.e. all the text before[UNTRUSTED]).
4. check that it still has
at the end.
5. Save this as "Main-Profile-NS-Options-Settings-with-short-Whitelist.txt".
6. Now using Profile "3", use NS and Import the Settings from "Main-Profile-NS-Options-Settings-with-short-Whitelist.txt".
7. Check if you get the results you were hoping for.
Are the NS Settings, in Profile "3" the same as your Main Profile?
Is the Whitelist in Profile "3" now like Profile "2"?
8. I would also Export again as, e.g.:
"3-Settings-after-Import.txt"
"3-Whitelist-after-Import.txt"
Then check the untrusted in the "3-Settings-after-Inport.txt" e.g.
Code: Select all
"untrusted":"domain-not-trusted.com ...
what YOU regarded as untrusted (that you have just Imported from your Main Profile).
and the untrusted in the "3-Whitelist-after-Import.txt"
This might not work. I have not tried it.
Note:
In "2-short-NS-Options-Settings.txt" each line ends with [CR][LF]
In "2-short-NS-Whitelist.txt" each domain is separated from the next with [LF]
Windows Notepad might not be a good enough Text editor, you might need to use
Notepad++
http://notepad-plus-plus.org
What I'm confident will work is to omit step 3.
So you 'cut out the very large white list' (step 2).
Then, instead of pasting in from "2-short-NS-Whitelist.txt"
just Import the "2-short-NS-Whitelist.txt".
However, I think this might delete your 'Untrusted list'.
I don't know, I don't use Untrusted (I'm blocking a lot with RP).
However, as the Import of the Whitelist is 'adding' it might not replace the "3" Profile's untrusted list.
Once you have verified what works you might try this method on yet another new
Profile. You can then add other Add-ons, copy items from your old Profile
(e.g. "places.sqlite" for history).
Going forward, I recommend just 'Temp allowing' for most sites.
Your Whitelist (and prefs.js) will stay small.
DJ-Leith