[Ext] uBlock Origin

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

[Ext] uBlock Origin

Post by gorhill »

A wide-spectrum blocker which also supports (and extends) the parsing/enforcing of Adblock Plus-filter syntax.

Image Image

Link to AMO page:
https://addons.mozilla.org/en-US/firefo ... ck-origin/

Beta version also available on AMO:
https://addons.mozilla.org/en-US/firefo ... sions/beta

What does "wide-spectrum blocker" means?
https://github.com/gorhill/uBlock/wiki/Blocking-mode

Source code on GitHub (license is GPLv3):
https://github.com/gorhill/uBlock
User avatar
Virtual_ManPL
Posts: 2052
Joined: July 24th, 2008, 5:52 am
Contact:

Re: [Ext] uBlock Origin

Post by Virtual_ManPL »

Thank you very much for your hard work on this extension! =D>
Virtualfox persona
Tired of constant Firefox UI changes? XUL extensions are not working anymore? Try SeaMonkey, Waterfox Classic, Pale Moon.
marty60
Posts: 475
Joined: March 21st, 2012, 7:09 am

Re: [Ext] uBlock Origin

Post by marty60 »

Just installed this because AdBlock Plus was crashing for me in the latest nightlies and the first thing I noticed is that it uses a lot less memory.
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: [Ext] uBlock Origin

Post by WaltS48 »

Installed it in 42.0b2 yesterday, used it for awhile and could not access the Menu button when I wanted to quit Firefox.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

WLS wrote:Installed it in 42.0b2 yesterday, used it for awhile and could not access the Menu button when I wanted to quit Firefox.


Was this on OSX? An issue resembling this has been reported: https://github.com/gorhill/uBlock/issues/737
User avatar
streetwolf
Posts: 2700
Joined: August 21st, 2011, 8:07 am
Location: NJ (USA)

Re: [Ext] uBlock Origin

Post by streetwolf »

Nice to see you Ray here at Mozillazine.
Last edited by streetwolf on October 1st, 2015, 3:09 pm, edited 1 time in total.
Intel i9-13900K | ASUS ROG MAXIMUS Z790 HERO DDR5 | 64GB CORSAIR VENGEANCE DDR5 @ 6400 Mhz.
H100i ELITE CAPELLIX XT Liquid CPU Cooler | PNY 12GB GeForce RTX 3080 Ti | 2 CORSAIR 2TB MP600 PRO XT GEN 4
HX1200 PLATINUM PSU | XENEON 32" IPS UHD 144Hz | BenQ 32" UHD | MS Windows 11 Pro
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

Welcome, Raymond!

if some need german support please read here for the news
http://www.camp-firefox.de/forum/viewto ... 4&t=111851

and write here for problems
http://www.camp-firefox.de/forum/viewto ... 4&t=111753

Boersenfeger is also present here.

/me uses uBlock and uMatrix - with a deny/allow ruleset

at least i switched from ABP and NoScript. /me knows both from my first experiences with google chrome and i missed uBlock for firefox until last year.

happy u-ing for the people here :D

Cheers.
User avatar
boersenfeger
Posts: 36
Joined: September 1st, 2010, 3:12 am
Location: Braunschweig, Nds, Deutschland

Re: [Ext] uBlock Origin

Post by boersenfeger »

Welcome, Raymond!
Great to have u here and a big thx for ur wonderful Addons uBlock origin and uMatrix..
:D
CU
Bo
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0.1
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20190219 Firefox/67a1
Visit the German Firefox-Forum wwx. camp-firefox.de/forum
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

i need a special filter and it has to look like this

Code: Select all

||bc0*.rp-online.de/polopoly_fs/*.*.*[a-z]!*

uBlock understand [a-z] as a regular expression?

the string (between . and !) i need to filter contains numbers and chars - regular content only has numbers.
Last edited by Brummelchen on October 2nd, 2015, 6:43 am, edited 1 time in total.
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: [Ext] uBlock Origin

Post by WaltS48 »

gorhill wrote:
WLS wrote:Installed it in 42.0b2 yesterday, used it for awhile and could not access the Menu button when I wanted to quit Firefox.


Was this on OSX? An issue resembling this has been reported: https://github.com/gorhill/uBlock/issues/737


On Mint 17.2 "Rafaela" | KDE 4.14.2
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
NickJH
Posts: 436
Joined: November 4th, 2003, 7:28 am
Location: Hampshire, England

Re: [Ext] uBlock Origin

Post by NickJH »

Brummelchen wrote:i need a special filter and it has to look like this

Code: Select all

||bc0*.rp-online.de/polopoly_fs/*.*.*[a-z]!*

uBlock understand [a-z] as a regular expression?

the string (between . and !) i need to filter contains numbers and chars - regular content only has numbers.
If uBlock understands regex's, you'll do better to rework your expression anyway. I think the / has to be escaped and .* means anything. .*.* therefore also means anything. If you want the "." you'll need to escape it so "/*.*.*" becomes "\/*\..*\..*". Great stuff :?
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Brummelchen wrote:uBlock understand [a-z] as a regular expression?


It is compatible with Adblock Plus-filter syntax, which does allow the use of regular expression for network filters -- though the use of regexp is discouraged for performance reasons. The filter you created though is not compatible with ABP filter syntax.

However it's always better to point out the page where there is an issue along with what is the issue, sometimes the solution is elsewhere than where you might think. In the current case, I visited the site rp-online.de, and I am guessing the issue is these ugly ads which appears as a result of using a blocker. If you are willing to install the dev version of uBlock Origin (available on AMO), then these anti-adblock ads can be dealt with more simply with the following filter (it's a new kind of filter):

rp-online.de##script:contains(uabInject)

This will disable the specific inline script tag which is responsible for the self-defacement behavior of the site.

More about script tag filtering: https://github.com/gorhill/uBlock/wiki/ ... -filtering
User avatar
streetwolf
Posts: 2700
Joined: August 21st, 2011, 8:07 am
Location: NJ (USA)

Re: [Ext] uBlock Origin

Post by streetwolf »

deleted
Last edited by streetwolf on October 2nd, 2015, 3:11 pm, edited 1 time in total.
Intel i9-13900K | ASUS ROG MAXIMUS Z790 HERO DDR5 | 64GB CORSAIR VENGEANCE DDR5 @ 6400 Mhz.
H100i ELITE CAPELLIX XT Liquid CPU Cooler | PNY 12GB GeForce RTX 3080 Ti | 2 CORSAIR 2TB MP600 PRO XT GEN 4
HX1200 PLATINUM PSU | XENEON 32" IPS UHD 144Hz | BenQ 32" UHD | MS Windows 11 Pro
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

well, i am more familiar with the normal regex using in other programs, at least i had same problems when used ABP
entry should be
||rp-online.de##script:contains(uabInject)

and i really appreciate such option when scrips are allowed by uMatrix, searching within scripts and block it on its content

great job you did, and thanks for investigating

darn, does not work any more while posting this edit
Last edited by Brummelchen on October 2nd, 2015, 12:42 pm, edited 1 time in total.
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Brummelchen wrote:||rp-online.de##script:contains(uabInject)


This won't work, domain names in cosmetic filters cannot be prepended with `||`.
Post Reply