uBlockOrigin / uAssets

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

yandex.ru #4497

Closed bogachenko closed 5 years ago

bogachenko commented 5 years ago

ads @mapx- @okiehsch 1

okiehsch commented 5 years ago

https://github.com/uBlockOrigin/uAssets/issues/4498 tv.yandex.ru https://github.com/uBlockOrigin/uAssets/issues/4499 yandex.ru/pogoda https://github.com/uBlockOrigin/uAssets/issues/4500 afisha.yandex.ru

All yandex subdomains can be discussed in this issue, there is no need to open a separate issue for every one of them.

FYI, yandex.ru##+js(set-constant.js, Math.random, trueFunc) fixes all issues on my end using Chrome/Chromium, but does not work with Firefox except for https://github.com/uBlockOrigin/uAssets/issues/4499

bogachenko commented 5 years ago

@okiehsch Advertising not deleted. The filter that you gave me only for yandex.ru/pogoda again throw a screenshot?

bogachenko commented 5 years ago

@okiehsch look default just fucking helped for me @okiehsch

okiehsch commented 5 years ago

What is your problem? I linked to all of the issues you opened.

4498

tv.yandex.ru

4499

yandex.ru/pogoda

4500

afisha.yandex.ru

All yandex subdomains can be discussed in this issue, there is no need to open a separate issue for every one of them.

FYI, yandex.ru##+js(set-constant.js, Math.random, trueFunc) fixes all issues on my end using Chrome/Chromium, but does not work with Firefox except for #4499

Like I said all yandex subdomains can be discussed here, they all have the same issue anyway.

bogachenko commented 5 years ago

@okiehsch

What is your problem?

rough


if they had the same problem the filter you gave me would work for all subdomains (and this filter would give a shit on useragent, whether chrome or firefox) and not just for yandex.ru/pogoda

as it turns out, the scriptlet works on one browser is normal, and the other is not?

okiehsch commented 5 years ago

The filter works for all opened issues on my end using Chromium/Chrome

What is your problem. rough

just fucking helped for me

That sounds to me like you have a problem.

bogachenko commented 5 years ago

@okiehsch

The filter works for all opened issues on my end using Chromium/Chrome

why is that? what's wrong with the scriptlet?

bogachenko commented 5 years ago

@okiehsch and you're not sociable. there is still thought as can be cut this shit from a fucking site?

okiehsch commented 5 years ago

I am not sure, but yandex.ru/pogoda is the only yandex or yandex-subdomain site I have seen where any script-inject works with Firefox on my end. I do not know the exact reason for this behaviour.

bogachenko commented 5 years ago

@okiehsch well, I failed.

okiehsch commented 5 years ago

For afisha.yandex.ru

afisha.yandex.ru##.i-sticky
afisha.yandex.ru##.content-index__direct

hides the ads with Firefox on my end.

bogachenko commented 5 years ago

@okiehsch yae. but the banner remained. (which is above) however, it can be hidden like this. afisha.yandex.ru##HEAD + BODY > :first-child > :first-child > :first-child + DIV

can this be cut?

okiehsch commented 5 years ago

I can't reproduce the banner, maybe it depends on ones location. image

bogachenko commented 5 years ago

@okiehsch shit. similarly on firefox (just now I'm testing on different browsers after the scriptlet) default o

okiehsch commented 5 years ago

For tv.yandex.ru

tv.yandex.ru##[class$="4__wrapper"]

hides the ads with Firefox on my end.

bogachenko commented 5 years ago

@okiehsch number 4 is it static? isn't she changing?

bogachenko commented 5 years ago

@okiehsch 2019-01-02 19 52 16-fullpage and can I hide this space? when you hide this space for the first time, the filter is

tv.yandex.ru##.grid-chunk__column-box

but it is worth updating the page....

default

bogachenko commented 5 years ago

@okiehsch advertising appeared. now this filter (which I have in my filters) is not displayed in the log

For tv.yandex.ru

tv.yandex.ru##[class$="4__wrapper"]

hides the ads with Firefox on my end.

see for yourself default Maybe you have a scriptlet?

mapx- commented 5 years ago

@bogachenko did you try using ruadlist JS fixes ? https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes

bogachenko commented 5 years ago

@mapx- I don't want to install this script (or any other), dude, you're a magician, you can do anything it can also be blocked using ublock

mapx- commented 5 years ago

I just tested tv.yandex.ru using ruadlist fixes (installed in tampermonkey) => all fine here, no right side banners

okiehsch commented 5 years ago

tv.yandex.ru##[class$="4__wrapper"] number 4 is it static? isn't she changing?

Yes, my mistake the last number does change from time to time.

Try tv.yandex.ru##[class$="__wrapper"]:if-not(a[href])

bogachenko commented 5 years ago

@mapx- may be. but I repeat, I don’t really want to install scripts (and extensions like tampermonkey) and There are no such scripts for your region (ENG right?), you use ublock0 for these purposes and perfectly remove all this shit

bogachenko commented 5 years ago

@okiehsch breaks widgets (what is up on a gray background) and by the way advertising still appears. lol

mapx- commented 5 years ago

@bogachenko , the problem is with firefox ==> due to a bug on their side uBo (and other addons) cannot inject scriptlets in pages using CSP script-src directives. Look into console, you'll get (on yandex subdomains): Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”)

Tampermonkey (used by ruadlist fixes) - as a userscript manager - managed somehow to bypass this bug in FF design => ruadlist fixes working fine.

bogachenko commented 5 years ago

@mapx- Well, how did you delete it before with the script?

mapx- commented 5 years ago

Test yourself => install tampermonkey then ruadlist fixes. Already done ?

bogachenko commented 5 years ago

done done i am the fucking done

mapx- commented 5 years ago

Provide only useful feedback. Thanks. Are you meaning does not work for you ?

bogachenko commented 5 years ago

@mapx- works. but this is a superfluous addition, but my laptop will not be very happy about memory loss due to this extension

mapx- commented 5 years ago

Well, this is a special case for a lot of russian sites for which the guys at ruadlist have their custom fixes. And for firefox there is the CSP bug, nothing we can do.

bogachenko commented 5 years ago

@mapx- Well, no, seriously. You deleted the advertisement before me https://github.com/uBlockOrigin/uAssets/issues/4462, how is it not working now?

mapx- commented 5 years ago

news.yandex has the same csp issue. I provided only CSP working filters which are working fine (CSP bug avoids only the injecting of the scriptlets)

bogachenko commented 5 years ago

@mapx- but now I understand it is impossible to do?

mapx- commented 5 years ago

try this 1 for tv.yandex (but as for news.yandex there are little breakings .. because some of the first-party scripts blocked contain the jquery library used on some pages)

||tv.yandex.ru^$csp=script-src * 'unsafe-inline'

see if breaks some functionality

mapx- commented 5 years ago

yeah, breaking the entire page

bogachenko commented 5 years ago

@mapx-

yeah, breaking the entire page

exactly

bogachenko commented 5 years ago

@okiehsch Why is this?

||mc.yandex.ru/watch/*$script,first-party,redirect=silent-noeval.js
||mc.yandex.ru/metrika/*$script,first-party,redirect=silent-noeval.js

on the main page I deleted the banner like this, I don’t know ads for some reason. Strange

yandex.ru,yandex.ua,yandex.by##+js(cookie-remover.js, /adb|bltsr/)

See for yourself. This is Firefox. Screenshot of the full page of the event log sh

and main page 2019-01-03 15 11 07-fullpage

Page updated 100 thousand times

bogachenko commented 5 years ago

@okiehsch @mapx- There is a lot of advertising in search queries, VERY MUCH!

My request in screenshot https://yandex.ru/search/?text=%D0%BA%D1%83%D0%BF%D0%B8%D1%82%D1%8C%20%D1%85%D0%BE%D0%BB%D0%BE%D0%B4%D0%B8%D0%BB%D1%8C%D0%BD%D0%B8%D0%BA%20%D0%B2%20%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B5&lr=213

On the screenshot in red outlined the search results with the label "Реклама" (eng ADS) 2019-02-17 07 09 37-fullpage

mapx- commented 5 years ago

yandex.ru##.serp-item:has-text(/реклама/i)

bogachenko commented 5 years ago

@mapx- It does not work. Because the word "реклама" is a picture.

https://avatars.mds.yandex.net/get-serp/34166/serpt-jht3e2090.png/orig

default

But on the right side there is the inscription "Реклама"

default

mapx- commented 5 years ago

It's what works for me in Firefox / chrome.

bogachenko commented 5 years ago

How this can work if it is a picture? It is a PNG format, even in theory it cannot work. open it https://avatars.mds.yandex.net/get-serp/34166/serpt-jht3e2090.png/orig

mapx- commented 5 years ago

They served the page using a normal реклама text. I tried again and again and now I get the image.

bogachenko commented 5 years ago

ooo, okay bro do you have any idea how to cut it all out?

Adblock has this list (although I checked and it also does not work) https://raw.githubusercontent.com/abp-filters/abp-filters-anti-cv/master/russian.txt there they are "реклама" in base64 svg converted

anything like that can be done? But the only that worked

mapx- commented 5 years ago

Probably this is a good example for an AI approach https://arxiv.org/pdf/1805.09155.pdf

bogachenko commented 5 years ago

@mapx- is it so thin trolling?


@gorhill can u help me?

bogachenko commented 5 years ago

maestro @mapx- explain why it does not work and how to make it work? yandex.ru##.serp-list_left_yes.serp-list:has(:matches-css(background-image: /.png/origin/i):xpath(../..))

mapx- commented 5 years ago

I don't know what do you want to do but the special chars in regex have to be escaped

something like: yandex.ru##.serp-list_left_yes.serp-list:has(:matches-css(background-image: /\.png\/origin/i):xpath(../..))

an example from the polish list money.pl###app > div[data-reactroot] > div[class]:matches-css(background-image: /^url\(https:\/\/www\.money\.pl\/static\/bg\.png\)/)

bogachenko commented 5 years ago

yandex.ru##.serp-list_left_yes.serp-list:has(:matches-css(background-image: /.png\/origin/i):xpath(../..))

.serp-list_left_yes.serp-list - search results, links there all garbage

:has(:matches-css(background-image: /\.png\/origin/i):xpath(../..)) - https://github.com/uBlockOrigin/uAssets/issues/4497#issuecomment-464499879

but it does not work.