This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This script is designed to help users find their Firefox profiles and create | |
a backup of the `containers.json` file, especially if they use the 'Temporary Containers' extension. | |
Once the user selects the desired profile using arrow keys, the script does the following: | |
1. Identifies and removes any 'Temporary Containers' entries (those starting with 'tmp') from the `containers.json` file. | |
2. Creates a backup of the original `containers.json` file. If a backup already exists, it appends a timestamp to the new backup to avoid overwrites. | |
3. Overwrites the `containers.json` file with the cleaned data. |