-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Install_Menu_Icons.ps1
25 lines (20 loc) · 939 Bytes
/
Install_Menu_Icons.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# https://github.com/QNetITQ/WaveFox
# Getting profile name
$String = (Get-Content -Path "$env:APPDATA\Mozilla\Firefox\installs.ini" | Select-String -Pattern "^\s*Default\s*=\s*.+" | ConvertFrom-StringData).Default
$ProfileName = Split-Path -Path $String -Leaf
$Parameters = @{
Uri = "https://github.com/farag2/Mozilla-Firefox/raw/master/Icons.zip"
OutFile = "$env:APPDATA\Mozilla\Firefox\Profiles\$ProfileName\Icons.zip"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
$Parameters = @{
Path = "$env:APPDATA\Mozilla\Firefox\Profiles\$ProfileName\Icons.zip"
DestinationPath = "$env:APPDATA\Mozilla\Firefox\Profiles\$ProfileName"
Force = $true
Verbose = $true
}
Expand-Archive @Parameters
Remove-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\$ProfileName\Icons.zip" -Force
Write-Verbose -Message "userChrome.RegularMenuIcons-Enabled" -Verbose