uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.24k stars 778 forks source link

news.yandex.ru, news.yandex.ua, news.yandex.by #4462

Closed bogachenko closed 5 years ago

bogachenko commented 5 years ago

advertising. You already have filters for this site (https://github.com/uBlockOrigin/uAssets/commit/ad3e1927965bfec77b6ea60938537875d2aff2f8). but they do not work, they are old(and should they be removed?). can you help me? @mapx- @okiehsch

one of the scripts creates these cookies. These cookies are adware. I tried to block with the help of the scriptlet, I was defeated.

blcrm
bltsr
yc
yp
adb

default

and further. If you go to any links on this site, then there will be more advertising

see for yourself. Click on any link. I can not upload a screenshot, because the page is too long.

mapx- commented 5 years ago

test news.yandex.ru##+js(setTimeout-defuser.js, AdvManager)

okiehsch commented 5 years ago

That works for me, we can add it until it is included in the russian list too.

mapx- commented 5 years ago

@bogachenko can you test for all the news sites ? news.yandex.ru, news.yandex.ua, news.yandex.by

news.yandex.*##+js(setTimeout-defuser.js, AdvManager)

mapx- commented 5 years ago

@okiehsch did you test all those sites ?

bogachenko commented 5 years ago

@mapx-

news.yandex.ru##+js(setTimeout-defuser.js, AdvManager)

not working

mapx- commented 5 years ago

Weird, for .ru is working fine for me

bogachenko commented 5 years ago

default 1

uh

bogachenko commented 5 years ago

@mapx- well, I do not know It does not work for me. maybe I need to clean the cookies?

upd: cleared all cookies for this site. does not work

mapx- commented 5 years ago

@bogachenko What filter did you test ? news.yandex.ru##+js(setTimeout-defuser.js, AdvManager) or news.yandex.*##+js(setTimeout-defuser.js, AdvManager)

@okiehsch the second one does not work for me !?

bogachenko commented 5 years ago

@mapx- I tried it and so and so

mapx- commented 5 years ago

mmhmm .. every 2-3 tests I get the ads even using the first filter

bogachenko commented 5 years ago

@mapx- When you first start (after clearing cookies), your filter (or filters from subscriptions) hides ads. but it costs 1 time to refresh the page ....

mapx- commented 5 years ago

test

news.yandex.ru##+js(setTimeout-defuser.js, AdvManager)
news.yandex.ru##+js(set-constant.js, AdvManager, null)
bogachenko commented 5 years ago

@mapx- Can't you block cookies with the help of the scriptlet I wrote above? fix it there. the whole problem is in them. Yandex uses advertising cookies

bogachenko commented 5 years ago

@mapx-

news.yandex.ru##+js(setTimeout-defuser.js, AdvManager) news.yandex.ru##+js(set-constant.js, AdvManager, null)

not working. sry

okiehsch commented 5 years ago

What filter did you test ? news.yandex.ru##+js(setTimeout-defuser.js, AdvManager) or news.yandex.*##+js(setTimeout-defuser.js, AdvManager) @okiehsch the second one does not work for me !?

I think yandex is a Brand TLD, so you can't use yandex.*.

bogachenko commented 5 years ago

@okiehsch so with ".ru" does not work

okiehsch commented 5 years ago

The filter works for me consistently, I only tested the .ru domain and clicked through quite a few articles without the ads reappearing. I only tried with Chromium though, I will try with Firefox.

bogachenko commented 5 years ago

@okiehsch I'm on firefox. advertising everywhere. I am confused

~I checked on the opera. also advertising.~

Stop. ublock was disabled on my opera. I turned it on. there is no advertising .... but for some reason on firefox

bogachenko commented 5 years ago

@mapx- do you use chromium?

okiehsch commented 5 years ago

Yes, I can reproduce with Firefox, even disabling all setTimeout calls will not fix the issue with Firefox for some reason.

bogachenko commented 5 years ago

@okiehsch Uh How does this happen? everything works for my opera, but not on firefox.

okiehsch commented 5 years ago

@mapx- if your filter works for you with Chrome/Chromium we can add it for those browsers to atleast partially fix the issue. I can't test with Chrome - or Windows for that matter - at the moment.

mapx- commented 5 years ago

It works in chrome for me (not in FF). Sometimes ... I get ads even in chrome, could be my old system

mapx- commented 5 years ago

see if breaks the site ||news.yandex.ru^$script,1p

bogachenko commented 5 years ago

@mapx- works. and as far as I can judge nothing is broken. If I find write here.

can be closed. no advertising

mapx- commented 5 years ago

remove the last filter (||news.yandex.ru^$script,1p) and try

news.yandex.by,news.yandex.kz,news.yandex.ru,news.yandex.ua##.sticky_visible
news.yandex.by,news.yandex.kz,news.yandex.ru,news.yandex.ua##[class*="_name_first"]
news.yandex.by,news.yandex.kz,news.yandex.ru,news.yandex.ua##[class*="_name_footer"]
bogachenko commented 5 years ago

@mapx-

remove the last filter (||news.yandex.ru^$script,1p) and try

news.yandex.by,news.yandex.kz,news.yandex.ru,news.yandex.ua##.sticky_visible
news.yandex.by,news.yandex.kz,news.yandex.ru,news.yandex.ua##[class*="_name_first"]
news.yandex.by,news.yandex.kz,news.yandex.ru,news.yandex.ua##[class*="_name_footer"]

if you click on any links. then there will be another advertisement default

there is no advertising with this filter ||news.yandex.ru^$script,1p

and still did not remove the old filters https://github.com/uBlockOrigin/uAssets/commit/ad3e1927965bfec77b6ea60938537875d2aff2f8

bogachenko commented 5 years ago

@mapx- @okiehsch

It is not that https://github.com/uBlockOrigin/uAssets/commit/0c98afe8da243f5847520d0a75d842af57cc1e41 https://github.com/uBlockOrigin/uAssets/commit/aaff17c9328fa756e572c336de6d4f8598d20116 https://github.com/uBlockOrigin/uAssets/commit/4f60b484714dffa80f4cfa6e52beafe462660dbd. Advertising still leaks out. I even cleaned cookies. There is a race for speed and advertising appears 1 out of 5 times + 1 of these advertisements are displayed constantly (see screenshot).

default

mapx- commented 5 years ago

add in your vivaldi / chrome (I added those filters only for firefox)

||news.yandex.by^$csp=script-src * 'unsafe-inline'
||news.yandex.kz^$csp=script-src * 'unsafe-inline'
||news.yandex.ru^$csp=script-src * 'unsafe-inline'
||news.yandex.ua^$csp=script-src * 'unsafe-inline'
bogachenko commented 5 years ago

@mapx- still breaks settings

default

bogachenko commented 5 years ago

@mapx-

add in your vivaldi / chrome (I added those filters only for firefox)

||news.yandex.by^$csp=script-src * 'unsafe-inline'
||news.yandex.kz^$csp=script-src * 'unsafe-inline'
||news.yandex.ru^$csp=script-src * 'unsafe-inline'
||news.yandex.ua^$csp=script-src * 'unsafe-inline'

um. it seems without ads