Closed bogachenko closed 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
@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.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.
@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.ru
tv.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.
ads @mapx- @okiehsch