Repository navigation
Closed
Labels
Description
Prerequisites
- This is NOT a YouTube, Facebook or Twitch report.
- I read and understand the policy about what is a valid filter issue.
- I verified that this issue is not a duplicate. (Use this button to find out.)
- I forced an update of my filter lists. (Click the "Purge all caches" button while holding the 'Shift' key, then click the "Update now" button.)
- I did not remove any of the default filter lists, or I have verified that the issue was not caused by removing any of the default lists.
- I did not enable additional filter lists, or I have verified that the issue still occurs without enabling additional filter lists.
- I do not have custom filters/rules, or I have verified that the issue still occurs without custom filters/rules.
- I am not using uBlock Origin (uBO) along with other content blocker extensions.
- I have verified that the web browser's built-in blocker or DNS blocking (standalone or through a VPN) is not causing the issue.
- I did not answer truthfully to ALL the above checkpoints.
URL address of the web page
https://twitter.com/
Category
ads
Description
It seems twitter has done something so now ads are appearing in replies along with For You Page and Following.
Other extensions used
none
Screenshot(s)
Configuration
Details
uBlock Origin: 1.53.0
Chromium: 119
filterset (summary):
network: 103611
cosmetic: 43778
scriptlet: 19072
html: 0
listset (total-discarded, last-updated):
default:
user-filters: 4-0, never
easylist: 75532-16, now
easyprivacy: 32902-64, now
plowe-0: 3718-1078, now
ublock-badware: 7423-137, now
ublock-filters: 35634-156, now
ublock-privacy: 680-5, now
ublock-quick-fixes: 114-37, now
ublock-unbreak: 2155-32, now
urlhaus-1: 9970-0, now
filterset (user): [array of 4 redacted]
trustedset:
added: [array of 1 redacted]
removed:
chrome-scheme
userSettings: [none]
hiddenSettings: [none]
supportStats:
allReadyAfter: 337 ms
maxAssetCacheWait: 148 ms
popupPanel:
blocked: 15
network:
twitter.com: 13
ads-twitter.com: 1
google-analytics.com: 1Reacted by polymorphicshade, Salt, AwesomeSheep48, ThatKoza, candylight and furtochka

Activity
gorhill commentedon Nov 20, 2023
I can reproduce. Investigating an optimal solution.
polymorphicshade commentedon Nov 21, 2023
I forgot how cancerous the ads are on twitter...
gorhill commentedon Nov 21, 2023
My suggestion (if filter authors agree):
For browsers which supports native
:has(), it could be plain CSS selector:cc @ryanbr
Since
:has()is enabled by default in Firefox 121 (currently beta), I suggest we go with the second form).Hakkin commentedon Nov 21, 2023
path[d^="M13.1"]seems to match the verified business icon? I'm seeing ads from accounts without that icon.[data-testid='cellInnerDiv']:has([data-testid='placementTracking'])seems to block it for me, though obviouslyplacementTrackingis some kind of debug tag so Twitter could change it at will.unbeatable-101 commentedon Nov 21, 2023
I added
twitter##[data-testid="cellInnerDiv"] article:has(path[d^="M13.1"])to my filters and still am seeing ads, from accounts with verified business icons as well.SakhG commentedon Nov 21, 2023
placementTrackingis used for media in regular tweetsexample:
https://twitter.com/AzaelOfficial/status/1726754958480232620gorhill commentedon Nov 21, 2023
Efficiency-wise, this is a terrible filter,
spanreturns hundreds of matching elements, which means:has-text()will have to iterate through all those elements.I advise people to not paste into my filters any such suggestion from non-experienced filter list authors. The goal here is to find the minimum set of efficient filters which fulfill the task.
For now I will add
twitter##[data-testid="cellInnerDiv"] article:has(path[d^="M13.1"])to the list, we can improve on it thereafter.Hakkin commentedon Nov 21, 2023
twitter##[data-testid="cellInnerDiv"] article:has(path[d^="M13.1"])blocks every tweet from any verified business account, which has nothing to do with ads.gorhill commentedon Nov 21, 2023
If you want to report issue with that filter, post your troubleshooting information, this is a necessary step, just saying "it doesn't work" doesn't work:
Go to
twitter.com, click the uBO toolbar icon > Click the chat icon 💬 > Click "Troubleshooting Information" > Report content here (https://www.reddit.com/link/173jmog/video/bogwf92af9tb1/player)gorhill commentedon Nov 21, 2023
@Hakkin Please post examples of tweets from such "verified business" which is not an ad.
Hakkin commentedon Nov 21, 2023
All the tweets on https://twitter.com/ibm, for example. There are many other verified business Twitter accounts.
Revert "Fix #20792"
gorhill commentedon Nov 21, 2023
Ok I spotted one such verified business which was not an ad. Reverted.
RambIing commentedon Nov 21, 2023
104 remaining items
Yuki2718 commentedon Nov 24, 2026
@repparw @lumynou5 Can you also share JSON of
/SearchTimeline,/TweetDetail, and/UserTweets, if you seepromoted_metadatain them?lumynou5 commentedon Nov 24, 2026
If
/SearchTimelineis for search, I didn't see that; instead/SearchByRawQueryis requested:data.search_by_raw_query.search_timeline.timeline.instructions.[].entries.[-].content.content.promoted_metadataentriesseems to be the same structure as/HomeTimeline(if the instruction is add), but I haven't find a real ad or boosted post yet.dlukt commentedon Nov 24, 2026
repparw commentedon Nov 24, 2026
@Yuki2718 I captured
/TweetDetailby opening a post from the Home timeline in Helium. The request used Fetch (HTTP 200). The complete response contained fourTimelineTweetitems withpromoted_metadataat:data.threaded_conversation_with_injections_v2.instructions[].entries[].content.items[].item.content.promoted_metadataHere's one sanitized item from that response:
{ "__typename": "TimelineTweet", "tweet_results": "REDACTED", "promoted_metadata": { "ad_metadata_container": "REDACTED", "advertiser_results": "REDACTED", "click_tracking_info": "REDACTED", "impression_id": "REDACTED" } }In a separate capture, I saw one labeled conversation ad with a
twclidlink, and its post ID appeared in theTweetDetailresponse body. I haven't verified the exact parent of that ID in the response. I don't have verified/SearchTimelineor/UserTweetssamples yet.repparw commentedon Nov 24, 2026
@Yuki2718 I checked search and profile by navigating from inside X in the same Helium session. I observed different operation names:
/SearchByRawQuery. Three HTTP 200, untruncated responses contained 62 timeline tweet items in total underdata.search_by_raw_query.search_timeline.timeline.instructions./UserOriginalsTimeline. One HTTP 200, untruncated response contained 21 timeline tweet items underdata.user_result_by_screen_name.result.profile_user_originals_timeline.timeline.instructions.I found neither
promoted_metadatanorpromotedMetadatain the sampled timeline structures. I did not capture/SearchTimelineor/UserTweetsthemselves. These samples cover three searches and one profile, so I don't have a positive example from either surface.upd #20792 as suggested
Yuki2718 commentedon Nov 25, 2026
Thank you guys, updated filters based on trust built by your cooperation. If you still see ads or find
promoted_metadatain other requests, please share the response. HTMLs will still be welcome, but I guess it's difficult to make cosmetic filters not dependent on languages. I couldn't reproduce even with @u-RraaLL ' account, so there may be more conditions for the new layout than just an account.lumynou5 commentedon Nov 26, 2026
Can we also hide
div:has(> [data-slot="xds-callout"])?u-RraaLL commentedon Nov 26, 2026
That's a self-promo, not what is considered an ad. These are fixed in Annoyances.
u-RraaLL commentedon Dec 1, 2026
Reddit is reporting ads again. I can reproduce too. For the cosmetic approach (with placeholders), they've removed the
urtid.lumynou5 commentedon Dec 1, 2026
@Yuki2718
/HomeTimelineand/HomeLatestTimelineQuery:data.home.home_timeline_urt.instructions.[].entries.[-].content.content.promotionThey changed the field name
promoted_metadata.upd #20792
upd #20792
MikuAuahDark commentedon Dec 2, 2026
bd36bd2 need to add
/HomeTimelinein addition to/Homeas well. Otherwise ads still go through on me.