Class Firefox

java.lang.Object
fi.evolver.script.app.Firefox

public class Firefox extends Object
  • Field Details

    • EXTENSION_BITWARDEN

      public static final Firefox.Extension EXTENSION_BITWARDEN
    • EXTENSION_MULTI_ACCOUNT_CONTAINERS

      public static final Firefox.Extension EXTENSION_MULTI_ACCOUNT_CONTAINERS
    • EXTENSION_GRANTED_CONTAINERS

      public static final Firefox.Extension EXTENSION_GRANTED_CONTAINERS
    • EXTENSION_UBLOCK_ORIGIN

      public static final Firefox.Extension EXTENSION_UBLOCK_ORIGIN
  • Constructor Details

    • Firefox

      public Firefox()
  • Method Details

    • installOfficial

      public static void installOfficial()
    • addDefaultExtensions

      public static void addDefaultExtensions(Path firefoxInstallDir, List<Firefox.Extension> extensions)
      Downloads and a Firefox extension and adds it to the system autoinstall directory. This will install the extension automatically to new profiles.
      Parameters:
      firefoxInstallDir - the directory of the system Firefox installation
    • installBookmarks

      public static void installBookmarks(Path bookmarksSourcePath) throws IOException
      Installs bookmarks from an existing file to the default Firefox profile. The source file should be in Firefox bookmark format (JSON or HTML).
      Parameters:
      bookmarksSourcePath - the path to the bookmarks file to install
      Throws:
      IOException - if there's an error copying the bookmarks file