Closed sexymoomin closed 2 years ago
Saw ads
Screenshot?
Or save Dom tree to create ExtendedCSS (procedural) filter.
Language specific, not everyone like English e.g. Italian 🇮🇹 or Spaniard / Spanish 🇪🇸.
https://reddit.com/r/uBlockOrigin/comments/wmnwhf/ads_going_through_ublock_on_instagram_desktop/
A) instagram.com##article div:has-text(/Sponsored/i):upward(article)
B) instagram.com##article div:has-text(/Sponsored/i):upward(article > div)
C) instagram.com##article > div > div > div > header > div:nth-of-type(2) > div:nth-of-type(2) > div > div > span:has-text(/Sponsored/i):upward(article > div)
IMO c to avoid match posts with lament to other influences with too much sponsored posts.
@MasterKia Are we sure that does not break anything, if that's the case add them.
I don't know much about it but could that not also hide some influencer instagram posts?
AdGuard hasn't got any reports about instagram.com
sponsored posts in the recent months:
https://github.com/AdguardTeam/AdguardFilters/issues?q=instagram.com
So I think we should wait and see if there are more reports about this in uAssets then we could add one of these filters.
Have here https://github.com/AdguardTeam/AdguardFilters/issues/123556 (first and last two @adguard-bot reports form 4 / 2 days ago and Alex 302 wrote suggestion).
Have seen sponsored posts on the timeline, I'm assuming that's what OP is talking about? Here's a screenshot.
Have seen sponsored posts on the timeline, I'm assuming that's what OP is talking about? Here's a screenshot.
Here's my config info also
@BruhMomient
Add these to "My filters" one by one and tell us which one (A, B or C) removes the sponsored posts: https://github.com/uBlockOrigin/uAssets/issues/14370#issuecomment-1217524472
And if it blinks after scrolling then use Alex 302 suggestion with split to two filters:
instagram.com##main > section div[style^="flex-direction: column;"] > article > div:has(span:contains(Sponsored)):style(visibility: hidden !important;)
Or
instagram.com##main > section div[style^="flex-direction: column;"] > article > div:has(span:contains(Sponsored))
@okiehsch AdGuard fixed it: https://github.com/AdguardTeam/AdguardFilters/commit/6b57f3cb433175b73eadd044fd1ff47a323bb629
Should we add the same?
Ok.
I'm uncertain to add the "Sponsored" translated in Russian
(/Спонсор публикации:|Sponsored/))
Yeah, let's keep it english only for now.
Maybe AdGuard Addons again disabled use:
tabs.insertCSS()
/ scripting.insertCSS()
Then hidding works bad on pages. Apps no support WebExtension API at all, then works similar like addon without this API.
@MasterKia :contains()
is AG syntax.
@krystian3w Why the dislike?
These change should be confirmed from devtools about lag/delay in hide elements or ate too many RAM at start browser or forced update list.
AFAIK uBO will internally change the compatible syntax at filter list compile time.
This looks strange for conversion:
https://github.com/uBlockOrigin/uBlock-issues/issues/2228
So it must be on a "strange" level that the error is not in EL syntax and deprecated :if(
.
So if posts back in Chrome 105 (now served as stable) then needed is jump to development built.
Sadly Instagrams Adblocking breaks if you set instagram to any other Language then English...
in the German Version the "sponsored" text is "Gesponsert" and sadly thus the Ads show up...
Does this work for you?
instagram.com#?#main > div > section div[style*="flex-direction: column;"] > article > div:has(span:has-text(/Gesponsert/)):style(visibility: hidden !important;)
instagram.com#?#main > div > section div[style*="flex-direction: column;"] > article > div:has(span:has-text(/Gesponsert/))
@MasterKia Yes, I added those rules my self, works, just wanted to check this for few Hours until answering here, but I think, that this rules should be added too.
But that bad filter is different from the one being discussed here.
Also possible spend time to create path inside :has(
:
:has(> foo > bar > don-t > longer > touch-comments > span:has-text(Un anuncio muy molesta))
But that bad filter is different from the one being discussed here.
Okay, confirmed the rule doesn't have the problem.
Added.
Maybe all the language? /Gesponsert|Sponsored|Geborg|Sponzorováno|Sponsoreret|Χορηγούμενη|Publicidad|Sponsoroitu|Sponsorisé|Bersponsor|Sponsorizzato|広告|광고|Ditaja|Sponset|Gesponsord|Sponsorowane|Patrocinado|Реклама|Sponsrad|ได้รับการสนับสนุน|May Sponsor|Sponsorlu|赞助内容|贊助|প্রযোজিত|પ્રાયોજિત|स्पॉन्सर्ड|Sponzorirano|ಪ್ರಾಯೋಜಿತ|സ്പോൺസർ ചെയ്തത്|पुरस्कृत|प्रायोजित|ਪ੍ਰਾਯੋਜਿਤ|මුදල් ගෙවා ප්රචාරය කරන ලදි|Sponzorované|விளம்பரதாரர்கள்|స్పాన్సర్ చేసింది|Được tài trợ|Спонсорирано|Commandité|Sponsorizat|Спонзорисано/
But I can't reproduce.
Good idea.
Do you think the #?#
is needed?
instagram.com#?#main > div > section div[style*="flex-direction: column;"] > article > div:has(span:has-text(...))
Do you think the
#?#
is needed?
Don't know but it's safer to have it.
CSSTree omit/ignore ?
, this was experimental fallback to force JavaScript implementation :has(
instead native from Chrome 105+ for simple filters.
Prerequisites
URL address of the web page
https://www.instagram.com/
Category
ads
Describe the issue
Saw ads
Screenshot(s)
Screenshot(s)
Configuration