Skip to content

Add-Firefox-Extensions.ps1 #1

Answered by farag2
fabcard asked this question in Q&A
Aug 22, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote
<#
	.SYNOPSIS
	Add extensions to Firefox automatically

	.PARAMETER ExtensionUri
	Copy URL on an extesion page by right-clicking on the Download button

	.PARAMETER Hive
	HKLM affects every user of a machine, HKCU will affect only the primary user

	.EXAMPLE
	$Parameters = @{
		ExtensionUris = @("https://addons.mozilla.org/firefox/downloads/file/3816867/ublock_origin.xpi")
		Hive          = "HKCU"
	}
	New-FirefoxExtension @Parameters

	.NOTES
	Some extensions doesn't have an appropriate ID to extract from manifest. This means that they cannot be installed programmatically. You need to know their ID

	.NOTES
	Enable extension manually
#>
function Add-FirefoxExtension
{
	[CmdletBinding()]
	p…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fabcard
Comment options

Answer selected by farag2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants