Package fi.evolver.script.app
Class Firefox
java.lang.Object
fi.evolver.script.app.Firefox
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Firefox.Extensionstatic final Firefox.Extensionstatic final Firefox.Extensionstatic final Firefox.Extension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultExtensions(Path firefoxInstallDir, List<Firefox.Extension> extensions) Downloads and a Firefox extension and adds it to the system autoinstall directory.static voidinstallBookmarks(Path bookmarksSourcePath) Installs bookmarks from an existing file to the default Firefox profile.static void
-
Field Details
-
EXTENSION_BITWARDEN
-
EXTENSION_MULTI_ACCOUNT_CONTAINERS
-
EXTENSION_GRANTED_CONTAINERS
-
EXTENSION_UBLOCK_ORIGIN
-
-
Constructor Details
-
Firefox
public Firefox()
-
-
Method Details
-
installOfficial
public static void installOfficial() -
addDefaultExtensions
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
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
-