Pre-install tampermonkey #1

Open
opened 2025-12-22 08:09:55 +01:00 by ViMaSter · 2 comments
Owner

Installed Firefox Extensions under MacOS are located at:
/Users/vimaster/Library/Application Support/Firefox/Profiles/3k51wj1p.default-release-2/extensions/firefox@tampermonkey.net.xpi
Settings for these:
/Users/vimaster/Library/Application Support/Firefox/Profiles/3k51wj1p.default-release-2/storage/default/moz-extension+++2bb25b2f-53d8-4534-b921-dc2450eac7c7
/Users/vimaster/Library/Application Support/Firefox/Profiles/3k51wj1p.default-release-2/storage/default/moz-extension+++2bb25b2f-53d8-4534-b921-dc2450eac7c7^userContextId=4294967295

Replacing these Files and restarting Firefox means the Settings are applied. But the internal ID (characters after +++) appear to be randomized each time an extension is installed.

Work left:

  1. Determine how to pre-install an extension with a guaranteed ID (create a database file locally, dump it in this repo?)
  2. Setup Tampermonkey once and dump the settings in the repository
  3. Copy these files as part post_install.sh
Installed Firefox Extensions under MacOS are located at: `/Users/vimaster/Library/Application Support/Firefox/Profiles/3k51wj1p.default-release-2/extensions/firefox@tampermonkey.net.xpi` Settings for these: `/Users/vimaster/Library/Application Support/Firefox/Profiles/3k51wj1p.default-release-2/storage/default/moz-extension+++2bb25b2f-53d8-4534-b921-dc2450eac7c7` `/Users/vimaster/Library/Application Support/Firefox/Profiles/3k51wj1p.default-release-2/storage/default/moz-extension+++2bb25b2f-53d8-4534-b921-dc2450eac7c7^userContextId=4294967295` Replacing these Files and restarting Firefox means the Settings are applied. But the internal ID (characters after `+++`) appear to be randomized each time an extension is installed. Work left: 1. Determine how to pre-install an extension with a guaranteed ID (create a database file locally, dump it in this repo?) 2. Setup Tampermonkey once and dump the settings in the repository 2. Copy these files as part `post_install.sh`
Author
Owner

tl;dr: The only reliable way to restore user data is to import the entire profile. I'll prepare a .zip, then all we need to do inside post_install is to download, extract, and move it to the correct location.


Importing/replacing extension user data on a per-extension basis by just placing some files, unfortunately, doesn't work. The .sqlite file that contains the user settings (like scripts and whether they're enabled or not) also contains the randomized internal ID, so we'd have to construct that manually.
A reliable way around that is to just place an entire profile and make that the default. I'll prepare a .zip, put it in this repo, and then I just need to find out where to place it on Debian.

tl;dr: The only reliable way to restore user data is to import the entire profile. I'll prepare a .zip, then all we need to do inside `post_install` is to download, extract, and move it to the correct location. --- Importing/replacing extension user data on a per-extension basis by just placing some files, unfortunately, doesn't work. The `.sqlite` file that contains the user settings (like scripts and whether they're enabled or not) also contains the randomized internal ID, so we'd have to construct that manually. A reliable way around that is to just place an entire profile and make that the default. I'll prepare a .zip, put it in this repo, and then I just need to find out where to place it on Debian.
ViMaSter added reference profile-install 2025-12-25 15:51:51 +01:00
Author
Owner

Branch profile-install contains an updated shell script with a prepared ZIP of a profile. I'm not sure who's currently working on getting the bootable USB stick ready, but opening Firefox, the browser should launch into https://kiosk.39c3.by.vincent.mahn.ke. When visiting another page, after 60 seconds of inactivity, it should ask if the user wants to stay on the page or automatically return after 30 seconds of further inactivity.

Branch `profile-install` contains an updated shell script with a prepared ZIP of a profile. I'm not sure who's currently working on getting the bootable USB stick ready, but opening Firefox, the browser should launch into https://kiosk.39c3.by.vincent.mahn.ke. When visiting another page, after 60 seconds of inactivity, it should ask if the user wants to stay on the page or automatically return after 30 seconds of further inactivity.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ViMaSter/preseed#1
No description provided.