MozillaZine

[Ext] uBlock Origin

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

Post Posted October 1st, 2015, 8:07 am

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

Virtual_ManPL

User avatar
 
Posts: 1714
Joined: July 24th, 2008, 5:52 am
Location: Gdańsk, Poland

Post Posted October 1st, 2015, 8:29 am

Thank you very much for your hard work on this extension! =D>

marty60
 
Posts: 410
Joined: March 21st, 2012, 7:09 am

Post Posted October 1st, 2015, 8:51 am

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.

WaltS48

User avatar
 
Posts: 3117
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted October 1st, 2015, 8:59 am

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: 77
Joined: February 10th, 2015, 8:00 am

Post Posted October 1st, 2015, 9:34 am

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

streetwolf

User avatar
 
Posts: 1886
Joined: August 21st, 2011, 8:07 am
Location: New Jersey (USA)

Post Posted October 1st, 2015, 10:05 am

Nice to see you Ray here at Mozillazine.
Last edited by streetwolf on October 1st, 2015, 3:09 pm, edited 1 time in total.
i7 Quad 3770K @ 5Ghz|ASUS P8Z77-V Deluxe|Corsair 1050W PSU|Corsair H100iV2 CPU Cooler|Corsair 16GB RAM|Sapphire Nitro R9 390 8GB|DUAL ASUS PA249Q IPS 24" LCDs|Samsung SSD 830, 840 256GB|2TB Seagate|Windows 10 Pro x64 (v1703)|AMD Crimson 17.4.4|420Mbps/42Mbps

Brummelchen
 
Posts: 1340
Joined: March 19th, 2005, 10:51 am

Post Posted October 1st, 2015, 12:57 pm

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.

boersenfeger

User avatar
 
Posts: 29
Joined: September 1st, 2010, 3:12 am

Post Posted October 2nd, 2015, 4:30 am

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:53.0) Gecko/20100101 Firefox/53.0
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20170428 Firefox/54.0b3
Visit the German Firefox-Forum wwx. camp-firefox.de/forum

Brummelchen
 
Posts: 1340
Joined: March 19th, 2005, 10:51 am

Post Posted October 2nd, 2015, 6:39 am

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.

WaltS48

User avatar
 
Posts: 3117
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted October 2nd, 2015, 6:42 am

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: 414
Joined: November 4th, 2003, 7:28 am
Location: Hampshire, England

Post Posted October 2nd, 2015, 8:25 am

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: 77
Joined: February 10th, 2015, 8:00 am

Post Posted October 2nd, 2015, 11:01 am

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

streetwolf

User avatar
 
Posts: 1886
Joined: August 21st, 2011, 8:07 am
Location: New Jersey (USA)

Post Posted October 2nd, 2015, 11:39 am

deleted
Last edited by streetwolf on October 2nd, 2015, 3:11 pm, edited 1 time in total.
i7 Quad 3770K @ 5Ghz|ASUS P8Z77-V Deluxe|Corsair 1050W PSU|Corsair H100iV2 CPU Cooler|Corsair 16GB RAM|Sapphire Nitro R9 390 8GB|DUAL ASUS PA249Q IPS 24" LCDs|Samsung SSD 830, 840 256GB|2TB Seagate|Windows 10 Pro x64 (v1703)|AMD Crimson 17.4.4|420Mbps/42Mbps

Brummelchen
 
Posts: 1340
Joined: March 19th, 2005, 10:51 am

Post Posted October 2nd, 2015, 12:22 pm

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: 77
Joined: February 10th, 2015, 8:00 am

Post Posted October 2nd, 2015, 12:37 pm

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


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

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 4 guests