[Ext] uBlock Origin

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
Glanni
Posts: 4
Joined: October 17th, 2015, 7:15 am

Re: [Ext] uBlock Origin

Post by Glanni »

would be nice to have a preview for selected blocked areas or elements like in adblock plus with element hiding helper :)
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Brummelchen wrote:its the round newsletter popup with the opaque overlay (see stylish).
it is not shown when a special cookie is set.

The first thing to do when wondering whether an inline script tag filter would help is to wholesale block inline scripting through the dynamic filtering pane. If the unwanted behavior persist, then no inline script tag filter will help. This is the case here -- I wholesale blocked inline scripts, and the overlay still appeared.

If I wholesale block all 1st-party scripts (through dynamic filtering pane), the overlay no longer appears (also site is broken), which means a 1st-party script is responsible for that overlay. Now it's a matter of finding which 1st-party. I found this one on my side (making use of dynamic URL filtering in logger):

Code: Select all

http://prospekt.real.de/typo3temp/compressor/merged-c6395290c54cce1278f8ae7d26497d10-531109e73f2831fb755f7483bab4aec0.1442933186.js

Overlay is gone. This however breaks the site, some sections won't load. So this means a last resort is to try to cosmetically filter the overlay. This seems to work:

Code: Select all

! 10/18/2015, 9:53:11 AM http://prospekt.real.de/wochenangebote-nach-kategorien/lebensmittel.html
prospekt.real.de###newsletter_anmeldung
prospekt.real.de###overlay-background
Last edited by gorhill on October 18th, 2015, 6:59 am, edited 2 times in total.
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Glanni wrote:would be nice to have a preview for selected blocked areas or elements like in adblock plus with element hiding helper :)

https://github.com/gorhill/uBlock/issues/650
Glanni
Posts: 4
Joined: October 17th, 2015, 7:15 am

Re: [Ext] uBlock Origin

Post by Glanni »

gorhill wrote:
Glanni wrote:would be nice to have a preview for selected blocked areas or elements like in adblock plus with element hiding helper :)

https://github.com/gorhill/uBlock/issues/650


ah, great. i will be patient. uBlock Origin really amazes me. I never changed permanently to another browser from ABP. Now I finally found a great, great substitute which is even better than ABP.

Thank you so much for your work and efforts!
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Glanni wrote:Thank you so much for your work and efforts!


Thanks. By the way, just to be sure: uBlock Origin is completely unrelated to "ublock.org".
Glanni
Posts: 4
Joined: October 17th, 2015, 7:15 am

Re: [Ext] uBlock Origin

Post by Glanni »

gorhill wrote:Thanks. By the way, just to be sure: uBlock Origin is completely unrelated to "ublock.org".


Yes, I know. uBlock Origin is different from uBlock.

EDIT: and much better, too! :)
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

gorhill wrote: I found this one on my side (making use of dynamic URL filtering in logger):

Code: Select all

http://prospekt.real.de/typo3temp/compressor/merged-c6395290c54cce1278f8ae7d26497d10-531109e73f2831fb755f7483bab4aec0.1442933186.js

Overlay is gone. This however breaks the site, some sections won't load. So this means a last resort is to try to cosmetically filter the overlay. This seems to work:

Code: Select all

! 10/18/2015, 9:53:11 AM http://prospekt.real.de/wochenangebote-nach-kategorien/lebensmittel.html
prospekt.real.de###newsletter_anmeldung
prospekt.real.de###overlay-background

Thats what i tried to communicate to you before - it dont work here.
the one and only rule in uBlock is

Code: Select all

prospekt.real.de prospekt.real.de * allow

otherwise no content

well i can use stylish or allow that cookie permanently, but i am clueless why the hiding code does not work.

Cheers.
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Brummelchen wrote:

Code: Select all

prospekt.real.de prospekt.real.de * allow

What's the purpose of that rule? Setting an `allow` rule for the current site will disable cosmetic filtering. See https://github.com/gorhill/uBlock/wiki/ ... rent-site#.

Here are a list of reasons of why a custom filter may not work: https://github.com/gorhill/uBlock/wiki/ ... d-the-page
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

What's the purpose of that rule?

otherwise no content

and it does not depend on uMatrix which was deactivated for this domain.

cheers.
the magic number is 51 and you are probably part of it :p
gorhill
Posts: 163
Joined: February 10th, 2015, 8:00 am

Re: [Ext] uBlock Origin

Post by gorhill »

Brummelchen wrote:and it does not depend on uMatrix which was deactivated for this domain.

I don't understand your comment. I was explaining why "the hiding code does not work": setting an `allow` rule for the current site will disable static and cosmetic filtering for that site, meaning your network and cosmetic filters for the site won't work.
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

i know the relationchip between those but i must set * allow for that domain to get content otherwise blank site.
i already wrote about on 10-18-15 -> viewtopic.php?p=14370761#p14370761

if you would tell me i dont had to do that then i need to search for an issue here but now i dont see any.

ok, something has changed. i removed the * allow line last minute and started another test - the content is now present however
uBlock shows me again "prospekt.real.de ++   −"
uMatrix is off for domain.
the differences here is "ublock_origin-1.3.0rc4" <> "ublock_origin-1.3.0" (final), and ofc newer block lists.

i hope this issue is marked as "solved" from now.

thank you for your patience.
User avatar
happysurf
Posts: 351
Joined: January 20th, 2011, 3:14 am

Re: [Ext] uBlock Origin

Post by happysurf »

I don't use uMatrix at moment but I seen in Privacy options, the "Clear browser cache every" feature.
Will be great have this useful feature on uBlock Origin.
Thanks.
Surf the Internet is a dirty job but someone has to do it.
User avatar
Xetmes
Posts: 676
Joined: December 7th, 2011, 8:54 am
Location: Poland/Germany

Re: [Ext] uBlock Origin

Post by Xetmes »

Hi, first, thanks for this grate extension, awesome, I like to ask You about extended scripts blocking, witch seems to be very similar to this what is NoScript doing, I use NoScript and sometimes I've strong mismatch on sites, where scripts are allowed in NoScript but uBlock is still blocking, would be nice to have an option to disable scripts blocking in uBlock and let do the work only in NoScript, but still use adds blocking ;)

Never mind, I see there is an option to disable scripts blocking, only name for it is bit misleading ;)
Last edited by Xetmes on October 26th, 2015, 10:48 am, edited 1 time in total.
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: [Ext] uBlock Origin

Post by Brummelchen »

please dont mix noscript and ublock - either this or that but not both!

read the wiki for filtering scripts and make your choice in the matrix
https://github.com/gorhill/uBlock/wiki/ ... uick-guide

if you need to filter more granular on scripts use umatrix or on content in ublock, see (working) example (this blocks ads above and right side)
www.ran.de##script:contains(uabTrack)

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

Re: [Ext] uBlock Origin

Post by Brummelchen »

this is a copy from my request(s) at wilders
http://www.wilderssecurity.com/threads/ ... st-2547730
need some help again

i need to block some object

Code: Select all

!~~~focus-video-ads~~~
||*.1.damoh.focus.de$object,domain=www.focus.de
||*.2.damoh.focus.de$object,domain=www.focus.de
||*.3.damoh.focus.de$object,domain=www.focus.de
but allow

Code: Select all

focus.de/*crossdomain.xml
but xml is recognized as "object".
i am still not familiar with block and allow -> @@|| exceptions.

some can help out?
http://www.wilderssecurity.com/threads/ ... st-2547086
i read about "surrogate" in the noscript thread here
http://www.wilderssecurity.com/threads/ ... st-2544702

at least is it possible to "redirect" or "replace" an online script with an offline script to avoid ads?

Code: Select all

http://st.wetteronline.de/dr/1.0.645/js/lib/mootools/library-1.4.5-1.4.0.1.js
that script is needed for several functions on that site but it was modified to place ads.
Post Reply