brave / adblock-lists

Maintains adblock lists that Brave uses
Mozilla Public License 2.0
332 stars 73 forks source link

Update Twitter ad rules #2017

Closed ryanbr closed 1 month ago

ryanbr commented 1 month ago

Update our twitter rules from EL

twitter.com,x.com##.tweet:has(.promo)

From uBO:

! https://github.com/uBlockOrigin/uAssets/issues/20792 ! https://www.reddit.com/r/uBlockOrigin/comments/1crkyyz/ ! https://www.reddit.com/r/uBlockOrigin/comments/1c2eq9o/ads_are_appearing_again_on_twitter/

! https://github.com/uBlockOrigin/uAssets/blob/master/filters/filters-2023.txt#L5180
twitter.com,x.com##[data-testid="primaryColumn"] [data-testid="cellInnerDiv"] > div:has([data-testid$="-impression-pixel"]):remove()
twitter.com,x.com##+js(json-prune-xhr-response, data.home.home_timeline_urt.instructions.[].entries.[-].content.itemContent.promotedMetadata, , propsToMatch, url:/Home)
twitter.com,x.com##+js(json-prune-xhr-response, data.search_by_raw_query.search_timeline.timeline.instructions.[].entries.[-].content.itemContent.promotedMetadata, , propsToMatch, url:/SearchTimeline)
twitter.com,x.com##+js(json-prune-xhr-response, data.threaded_conversation_with_injections_v2.instructions.[].entries.[-].content.items.[].item.itemContent.promotedMetadata, , propsToMatch, url:/TweetDetail)
twitter.com,x.com##+js(json-prune-xhr-response, data.user.result.timeline_v2.timeline.instructions.[].entries.[-].content.itemContent.promotedMetadata, , propsToMatch, url:/UserTweets)