Downloads:

10,018

Downloads of v 1.20.2:

6,332

Last Update:

7/19/2019

Package Maintainer(s):

Software Author(s):

  • Raymond Hill

Tags:

Firefox ads blocking

uBlock Origin for Firefox

1.20.2 | Updated: 7/19/2019

Downloads:

10,018

Downloads of v 1.20.2:

6,332

Maintainer(s):

Software Author(s):

  • Raymond Hill

uBlock Origin for Firefox 1.20.2

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

It fails to install in the testing environment because I have removed Firefox as a dependency to ensure installing this addon wont over write the install if on ESR branch. I have included in the package a check for if Firefox is installed, and to throw an error and fail if it is missing

To install uBlock Origin for Firefox, run the following command from the command line or from PowerShell:

>

To upgrade uBlock Origin for Firefox, run the following command from the command line or from PowerShell:

>

To uninstall uBlock Origin for Firefox, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade ublockorigin-firefox -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade ublockorigin-firefox -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure ublockorigin-firefox installed
  win_chocolatey:
    name: ublockorigin-firefox
    state: present
    version: 1.20.2
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'ublockorigin-firefox' do
  action    :install
  version  '1.20.2'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: ublockorigin-firefox,
    Version: 1.20.2,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller ublockorigin-firefox
{
   Name     = 'ublockorigin-firefox'
   Ensure   = 'Present'
   Version  = '1.20.2'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'ublockorigin-firefox':
  provider => 'chocolatey',
  ensure   => '1.20.2',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install ublockorigin-firefox version="1.20.2" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 7/19/2019.

Description

uBlock Origin is a free and open-source, cross-platform browser extension for content-filtering, including ad-blocking. The extension is available for several browsers: Safari (beta), Chrome, Chromium, Edge, Firefox, and Opera. uBlock Origin has received praise from technology websites, and is reported to be much less memory-intensive than other extensions with similar functionality. uBlock Origin's stated purpose is to give users the means to enforce their own (content-filtering) choices.
If you want the extension to be automatically enabled, be sure to configure your local mozilla.cfg and local-settings.js as per Mozilla documentation.


tools\chocolateyInstall.ps1
#This packaged based off one creatd by Doc for the adblockplus install. Thanks Doc!

$packageName = 'ublockorigin-firefox'
$url = 'https://addons.cdn.mozilla.net/user-media/addons/607454/ublock_origin-1.20.2-an+fx.xpi?filehash=sha256%3A4634411118e2598f91dbb07289b11109e097660d64391cd04eceb205d2c50854'
$extensionName = "[email protected]" #Filename based off extension ID


#Find Firefox install location
if(test-path 'hklm:\SOFTWARE\Mozilla\Firefox\TaskBarIDs'){
	$installDir = Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Firefox\TaskBarIDs | Select-Object -ExpandProperty Property
    echo "Install Path located via Registry"
}elseif(test-path 'hklm:\SOFTWARE\Wow6432Node\Mozilla\Firefox\TaskBarIDs'){
	$installDir = Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Firefox\TaskBarIDs | Select-Object -ExpandProperty Property
    echo "Install path found via Wow6432Node in the registry"
}else{
throw "Firefox install not detected"
}

#Generate path for copy
$browserFolder = Join-Path $installDir "browser"
$extensionsFolder = Join-Path $browserFolder "extensions"
$extFile = Join-Path $extensionsFolder "$extensionName"


#Check to see if process running
$isrunning = Get-Process -Name firefox -ErrorAction SilentlyContinue
if ($isrunning){
    throw "Firefox running"
}


#Copy to Firefox system extensions folder
echo "Preparing to install to path $extFile"
try {
    Get-ChocolateyWebFile -PackageName 'uBlockOrigin-Firefox' -FileFullPath "$extFile" -url $url -ForceDownload
 }catch{
    echo "Error occured, fail to copy file."
 }
tools\chocolateyUninstall.ps1
$extensionName = "[email protected]" #Filename based off extension ID

if(test-path 'hklm:\SOFTWARE\Mozilla\Firefox\TaskBarIDs'){
	$installDir = Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Firefox\TaskBarIDs | Select-Object -ExpandProperty Property
}
if(test-path 'hklm:\SOFTWARE\Wow6432Node\Mozilla\Firefox\TaskBarIDs'){
	$installDir = Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Firefox\TaskBarIDs | Select-Object -ExpandProperty Property
}


$browserFolder = Join-Path $installDir "browser"
$extensionsFolder = Join-Path $browserFolder "extensions"
$extFile = Join-Path $extensionsFolder "$extensionName"

$isrunning = Get-Process -Name firefox -ErrorAction SilentlyContinue

if ($isrunning){
throw "Firefox running"
}

Remove-Item "$extFile" -Force -Recurse


In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
uBlock Origin for Firefox 1.18.2 3024 Tuesday, January 29, 2019 Approved
uBlock Origin for Firefox 1.17.4 466 Monday, December 3, 2018 Approved
uBlock Origin for Firefox 1.17.2 75 Wednesday, November 28, 2018 Approved
uBlock Origin for Firefox 1.17.0 51 Wednesday, November 28, 2018 Approved
uBlock Origin for Firefox 1.16.20 70 Wednesday, November 28, 2018 Approved

This package has no dependencies.

Discussion for the uBlock Origin for Firefox Package

Ground Rules:

  • This discussion is only about uBlock Origin for Firefox and the uBlock Origin for Firefox package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or uBlock Origin for Firefox, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus