Notices: This section not yet converted to new layout. Download stats are rolling back out.

uBlock Origin for Firefox

1.18.2

This package skips automatic verification:

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


This package was approved by moderator gep13 on 1/30/2019.

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.

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

C:\> choco install ublockorigin-firefox

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

C:\> choco upgrade ublockorigin-firefox

Files

Hide
  • tools\chocolateyUninstall.ps1 Show
    $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
    
    
  • tools\chocolateyInstall.ps1 Show
    #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.18.2-an+fx.xpi?filehash=sha256%3Ae16599bd915ffa6827c5cff8cb22037b13f5a2ff534ead1e50d4e283d526b784'
    $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."
     }
    

Virus Scan Results

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.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Raymond Hill

Tags

Release Notes

https://github.com/gorhill/uBlock/releases

Version History

Version Downloads Last updated Status
uBlock Origin for Firefox 1.17.4 383 Monday, December 3, 2018 approved
uBlock Origin for Firefox 1.17.2 42 Wednesday, November 28, 2018 approved
uBlock Origin for Firefox 1.17.0 22 Wednesday, November 28, 2018 approved
uBlock Origin for Firefox 1.16.20 35 Wednesday, November 28, 2018 approved

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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok