• lock add on extensions in Firefox Ubuntu 22.04

    From Jackson Durmott@jdurmott55655@enau.net to alt.os.linux.ubuntu on Tue Apr 8 02:11:05 2025
    From Newsgroup: alt.os.linux.ubuntu

    Hi,

    I recently installed the "Block Site" extension for Firefox and
    customized it to block certain sites. It's great that I could add a
    custom password so that other users here could not bypass the plug in
    for a set amount of time BUT they could easily uninstall it.

    I'd like to lock the extension, with its current configuration, so that
    no one could either change settings or uninstall it. I am using Firefox
    on Ubuntu 22.04.

    I tried to create an AI inspired policies.json file as described here:

    https://tinyurl.com/8knyu4e8

    The AI first suggested to find the ID of the extension, which I thought
    I did and then created the policies.json files with the following code:

    {
    "policies": {
    "Extensions": {
    "Locked": [54e2eb33-18eb-46ad-a4e4-1329c29f6e17]
    }
    }
    }

    I tried placing this file first in
    /home/jackson/.mozilla/firefox/distribution

    as recommended elsewhere. The "distribution" folder did exist, so I
    created one. Nothing happened after restart and trying to uninstall the plugin, so tried placing policies.json in two other places:

    /usr/lib/firefox-esr/distribution/policies.json

    and I believe /etc/firefox/distribution/policies.json

    In neither case was the distribution folder there and I had to create
    it.

    Again, no effect on the extension, whether I tried to uninstall or
    modify it.

    Any help in this regard would be welcome. Please note that I use the
    non-snap version of Firefox.

    Thanks in advance.



    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From dillinger@dillinger@invalid.not to alt.os.linux.ubuntu on Fri Apr 11 09:50:14 2025
    From Newsgroup: alt.os.linux.ubuntu

    On 08/04/2025 08:11, Jackson Durmott wrote:
    Hi,

    I recently installed the "Block Site" extension for Firefox and
    customized it to block certain sites.  It's great that I could add a
    custom password so that other users here could not bypass the plug in
    for a set amount of time BUT they could easily uninstall it.

    I'd like to lock the extension, with its current configuration, so that
    no one could either change settings or uninstall it.  I am using Firefox
    on Ubuntu 22.04.

    I tried to create  an AI inspired policies.json file as described here:

     https://tinyurl.com/8knyu4e8

    The AI first suggested to find the ID of the extension, which I thought
    I did and then created the policies.json files with the following code:

    {
          "policies": {
            "Extensions": {
              "Locked": [54e2eb33-18eb-46ad-a4e4-1329c29f6e17]
            }
          }
        }

    I tried placing this file first in /home/jackson/.mozilla/firefox/ distribution

    as recommended elsewhere.  The "distribution" folder did exist, so I created one.  Nothing happened after restart and trying to uninstall the plugin, so tried placing policies.json in two other places:

     /usr/lib/firefox-esr/distribution/policies.json

    and I believe /etc/firefox/distribution/policies.json

    In neither case was  the distribution folder there and I had to create it.

    Again, no effect on the extension, whether I tried to uninstall or
    modify it.

    Any help in this regard would be welcome.  Please note that I use the non-snap version of Firefox.

    Thanks in advance.




    The extensions id is {54e2eb33-18eb-46ad-a4e4-1329c29f6e17}, including
    the curly brackets.

    Also, have a look here: https://mozilla.github.io/policy-templates/#extensionsettings
    "force_installed" may be what you want.

    --- Synchronet 3.20c-Linux NewsLink 1.2