iltalehti.fi

Finish supplemental subscription

Moderator: Nordic & Scandinavian Mods

Locked
peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

iltalehti.fi

Post by peace2000 »

On this site:

Code: Select all

https://www.iltalehti.fi/tyylicom
There are some articles that have a text (Kaupallinen yhteistyö) [eng. Commercial cooperation]. It would be easy to block if it was just a text but that text is image based so it makes things harder. That kind of image is always part of those ad articles. That image is loaded from different domain.

The element name for articles:

Code: Select all

##.default.drfront-full-article
A sample address for an "ad image":

Code: Select all

https://assets.ilcdn.fi/mainosnauha-tyyli-osloskinlab.png
So I want to make a rule that works like this:

Code: Select all

##.default.drfront-full-article:has(a:has(https://assets.ilcdn.fi/mainosnauha))
You probably realize what I'm trying to make I just don't master this properly. I shortened that address because "mainosnauha" means "ad ribbon" so I want this rule to be able to block every article that have images from this address:

Code: Select all

https://assets.ilcdn.fi/mainosnauha
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

try

Code: Select all

iltalehti.fi##.article-banner-container:nth-ancestor(5)
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

or

Code: Select all

iltalehti.fi##.default.drfront-full-article:has([src*="assets.ilcdn.fi"])
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

Post by peace2000 »

I'm a contributor there I'll make a pull request. Thank you.
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
Moved from Ad Blocking Topics to Report unblocked content on Fri Sep 13, 2019 3:18 pm by LanikSJ

peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

Post by peace2000 »

I come back to this topic again.

How to reliably block remnant bars that are left behind after blocking commercial cooperation articles?

https://images2.imgbox.com/ee/95/f4I5V63M_o.png

To reproduce this current situation, activate Finnish Easylist and use Ubo.

Sample link:

Code: Select all

https://www.iltalehti.fi/kehon-hyvinvointi-ja-vitaepro
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

replace

Code: Select all

www.iltalehti.fi##div.mc-half-article:has-text(Kaupallinen yhteistyö)
with (uBo only)

Code: Select all

iltalehti.fi##.mc-half-article:has-text(Kaupallinen yhteistyö):xpath(../../..)
add also:

Code: Select all

iltalehti.fi##.banner-image
peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

Post by peace2000 »

Thank you but it does not work properly as legit articles are blocked as well (my sample subpage has one legit article).
Last edited by peace2000 on Wed Sep 18, 2019 6:09 pm, edited 1 time in total.
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

You have to give me all the details, links, screenshots etc
peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

Post by peace2000 »

I was just about to post a screenshot :D

Code: Select all

http://imgbox.com/EdKvgefu
I marked the legit article here.
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

Post by peace2000 »

I tried to block those leftover bars by using a rule

Code: Select all

##div.card
And adding style based blocking specifications to it, like (width=x and height=x) but none of them worked. I tried to look for width and height of those bars by using element inspector but my attempts were futile.
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

The problem is even the legit article is part of such a card containing a sponsored article too.
So, my filter finds a sponsored one and wants to hide the whole card => hiding the legit one.
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

The best I can find:

Code: Select all

iltalehti.fi##.title:xpath(//div[contains(text(), 'Kaupallinen yhteistyö')]):xpath(../../..)
peace2000
Finnish List Author
Finnish List Author
Posts: 82
Joined: Mon Oct 02, 2017 10:51 pm

Post by peace2000 »

That blocks some of the bars. So better than nothing. Thanks.
I maintain the Finnish Easylist. If you report an ad issue, tag my name so I'll get a notification.
Moved from Report unblocked content to EasyList Finland on Thu Sep 19, 2019 4:16 am by LanikSJ

Locked