Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Twitter ad rules #2017

Merged
merged 1 commit into from
Aug 31, 2024
Merged

Update Twitter ad rules #2017

merged 1 commit into from
Aug 31, 2024

Conversation

ryanbr
Copy link
Collaborator

@ryanbr ryanbr commented Aug 31, 2024

Update our twitter rules from EL

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

From uBO:

! uBlockOrigin/uAssets#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)

@ryanbr ryanbr self-assigned this Aug 31, 2024
@ryanbr ryanbr merged commit c3750f4 into master Aug 31, 2024
6 checks passed
@ryanbr ryanbr deleted the twitters branch August 31, 2024 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant