ads @mapx- @okiehsch

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
@okiehsch Advertising not deleted. The filter that you gave me only for yandex.ru/pogoda
again throw a screenshot?
@okiehsch look

just fucking helped for me @okiehsch
What is your problem?
I linked to all of the issues you opened.
4498
tv.yandex.ru4499
yandex.ru/pogoda4500
afisha.yandex.ruAll 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.
@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?
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.
@okiehsch
The filter works for all opened issues on my end using Chromium/Chrome
why is that? what's wrong with the scriptlet?
@okiehsch and you're not sociable. there is still thought as can be cut this shit from a fucking site?
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.
@okiehsch well, I failed.
For afisha.yandex.ru
afisha.yandex.ru##.i-sticky
afisha.yandex.ru##.content-index__direct
hides the ads with Firefox on my end.
@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?
I can't reproduce the banner, maybe it depends on ones location.

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

o
For tv.yandex.ru
tv.yandex.ru##[class$="4__wrapper"]
hides the ads with Firefox on my end.
@okiehsch number 4 is it static? isn't she changing?
@okiehsch

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....

@okiehsch advertising appeared. now this filter (which I have in my filters) is not displayed in the log
For
tv.yandex.rutv.yandex.ru##[class$="4__wrapper"]hides the ads with Firefox on my end.
see for yourself

Maybe you have a scriptlet?
@bogachenko did you try using ruadlist JS fixes ?
https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes
@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
I just tested tv.yandex.ru using ruadlist fixes (installed in tampermonkey) => all fine here, no right side banners
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])
@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
@okiehsch breaks widgets (what is up on a gray background)
and by the way advertising still appears. lol
@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.
@mapx- Well, how did you delete it before with the script?
Test yourself => install tampermonkey then ruadlist fixes. Already done ?
done done i am the fucking done
Provide only useful feedback. Thanks. Are you meaning does not work for you ?
@mapx- works. but this is a superfluous addition, but my laptop will not be very happy about memory loss due to this extension
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.
@mapx- Well, no, seriously. You deleted the advertisement before me https://github.com/uBlockOrigin/uAssets/issues/4462, how is it not working now?
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)
@mapx- but now I understand it is impossible to do?
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
yeah, breaking the entire page
@mapx-
yeah, breaking the entire page
exactly
@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

and main page

Page updated 100 thousand times
@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)

yandex.ru##.serp-item:has-text(/реклама/i)
@mapx- It does not work. Because the word "реклама" is a picture.
https://avatars.mds.yandex.net/get-serp/34166/serpt-jht3e2090.png/orig

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

It's what works for me in Firefox / chrome.
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
They served the page using a normal реклама text.
I tried again and again and now I get the image.
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
Probably this is a good example for an AI approach
https://arxiv.org/pdf/1805.09155.pdf
@mapx- is it so thin trolling?
@gorhill can u help me?
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(../..))
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\)/)
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.
matches-css should address some div / class ... so try with .direct-label
yandex.ru##.serp-list_left_yes.serp-list:has(.direct-label:matches-css(background-image: /\.png\/origin/i):xpath(../..))
or
yandex.ru##.direct-label:matches-css(background-image: /\.png\/origin/i):xpath(../..)
@mapx-
its not work
yandex.ru##.serp-list_left_yes.serp-list:has(.direct-label:matches-css(background-image: /^url\(https:\/\/avatars\.mds\.yandex\.net\/get\-serp\/[^\s]{15,25}\.png\/orig)/):xpath(../..))
this too
yandex.ru##.direct-label:matches-css(background-image: /^url\(https:\/\/avatars\.mds\.yandex\.net\/get\-serp\/[^\s]{15,25}\.png\/orig)/):xpath(../..))
хочу сдохнуть
not. again does not work.
yandex.ru##.serp-list_left_yes.serp-list:has(.direct-label:matches-css(background-image: /^url\(https:\/\/avatars\.mds\.yandex\.net\/get\-serp\/[^\s]{15,25}\.png\/orig)/):xpath(../..))
for now I get the text реклама, not the image
in opera I have text, in firefox :walking_man: image
what's wrong? do i have the regular expression right?
it doesn't work either :walking_man:
yandex.ru##:xpath(//ul[@class='serp-list serp-list_left_yes']):has(.direct-label:matches-css(background-image: /^url\(https:\/\/avatars\.mds\.yandex\.net\/get\-serp\/[^\s]{15,25}\.png\/orig)/))
@mapx-
by the way, even this does not work.
yandex.ru##:matches-css(background-image: /^url\(https:\/\/avatars\.mds\.yandex\.net\/get\-serp\/[^\s]{15,25}\.png\/orig)/))
for example this 1 is "working"
yandex.ru##*:matches-css(background-image: /https:\/\/avatars\.mds\.yandex\.net\/get-serp\//i):xpath(../..)
the problem is is hiding a lot more (legitimate content too), because they are adding invisible (empty pics) on normal content too, in the same folder.
this is why I told you above we need AI systems

@mapx- you can not deceive them like that? I understand this RU site and people from Canada have no interest, but this site is a huge problem for the region RU (exp. Yandex Direct), but did you (team) create scriptlets for specific sites?
exp. pornhub-popup-defuser.js adfly-defuser.js xvideos.com.js twitch-videoad.js golem.de.js
and yeah I'll be honest I googled a little about you, found your account https://greasyfork.org/en/users/10606-mapx you have already created a similar
it would be a desire
@mapx- anyway. Thanks for your time today. even though we came to zero
The cosmetic filters in this case cannot help (indistinguishable differences on image files).
Someone should find the piece of code where they associate the pics with the various search results but ... if the page is prepared on the server side, well it's nothing to do (waiting the AI adblockers revolution)
well, it's not for me, I don't understand anything about it
maybe it could be used /integrated a javascript ocr-library like:
http://antimatter15.com/ocrad.js/demo.html
or
http://tesseract.projectnaptha.com/
but only the experts could say if it's possible (and which are the costs ..) @jspenguin2017 @gorhill @gwarser
OCR is likely going to be too slow, maybe we can hash the image...
Is there a test link?
@jspenguin2017 test link of what? Image with the word "Реклама" (eng. Advertising)?
Реклама
https://avatars.mds.yandex.net/get-serp/39859/serpt-bdok4860.png/orig
Empty (used for non ad requests to confuse the blocker. @mapx- talked about it)
https://avatars.mds.yandex.net/get-serp/39011/serpt-iy2m31241.png/orig
Do you have a link to a page with this issue?
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=10636
Here she is. Advertising appears if you type in a request
Купить что-то в каком то городе eng. Buy something in some city
exp. В этой ссылки запрос "Купить холодильник в Москве" - eng. In this link request "Buy a refrigerator in Moscow"
I don't have a solution right now, it's probably not going to be trivial...
@jspenguin2017 thanks anyway
yandex.ru##:xpath(//li[contains(@class, serp-item)]//a[string-length(@data-counter) > 2000]/ancestor-or-self::li)?
@gwarser ~Holy shit it works but i really don't know how long this is gonna last. the bastards from yandex will probably fix it soon.~ most ads hide with nonads requests
@gwarser Stop. 2 bugs.

@mapx- @okiehsch http://delovoe.tv/event/Putin_poruchil_uchest_mnenie_naseleniya_pri_stroitelstve_svalki_v_Shiese/
On this site there is a player, there antiadblock. Here people have added a solution https://github.com/AdguardTeam/AdguardFilters/commit/49c9f8fa343b4253b873f92939a488d2d66919c9, it works but is it possible to somehow unlock this player differently without unlocking awaps.yandex.net ?
is it possible to somehow unlock this player differently without unlocking awaps.yandex.net ?
No, redirecting that script will not work.
Getting ads on https://yandex.ru/pogoda/new-york/maps/temperature even with Russian lists, while testing pages in this thread. (I'm not Russian)
Test: yandex.ru##.weather-maps__layer-tranzister
@dimisa-RUAdList

Also ads on https://yandex.ru/pogoda/new-york in sidebar and at bottom
Test:
yandex.ru###eicg:nth-ancestor(1)
yandex.ru##[class^="y4594aw9N7qkzg"]
Or network filters?
||yandex.ru/weather/1sc700b79/99c100r9/*
@okiehsch
Yandex is one of the largest portals in Runet. And for its sections are responsible for different webmasters. Those who deal with news and weather react very quickly to ad blocking. Therefore, adding a rule in filters will have a very short-term effect, most likely a few hours. This problem is known and is solved with the help of RU Adlist JS Fixes: https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes
Most helpful comment
@okiehsch
Yandex is one of the largest portals in Runet. And for its sections are responsible for different webmasters. Those who deal with news and weather react very quickly to ad blocking. Therefore, adding a rule in filters will have a very short-term effect, most likely a few hours. This problem is known and is solved with the help of RU Adlist JS Fixes: https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes