forked from robonxt/CleanYourTwitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCleanYourTwitter.txt
More file actions
82 lines (71 loc) · 6.91 KB
/
Copy pathCleanYourTwitter.txt
File metadata and controls
82 lines (71 loc) · 6.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
! Title: CleanYourTwitterSquared
! Dev: endernon
! Description: Adblock filters for Twitter. Removes a lot of annoyance. Forked off of robonxt's CleanYourTwitter.
! Homepage: https://github.com/EnderNon/CleanYourTwitterSquared
! Last updated: March 15, 2025
! How to use: https://github.com/gorhill/uBlock/wiki/Filter-lists-from-around-the-web
! Credits: A BIG THANK YOU to https://github.com/krisu5/ for the initial filters and the r/uBlockOrigin reddit community for their work on the updated Twitter filters!
! !!! TIMELINE !!! !
! Removes "promoted tweets (ads)". Taken from Easylist because my original one is broken!
x.com#?#div[data-testid="UserCell"]:-abp-has(svg + div[dir="auto"] > span:-abp-contains(/Promoted|Gesponsert|Promocionado|Sponsorisé|Sponsorizzato|Promowane|Promovido|Реклама|Uitgelicht|Sponsorlu|Promotert|Promoveret|Sponsrad|Mainostettu|Sponzorováno|Promovat|Ajánlott|Προωθημένο|Dipromosikan|Được quảng bá|推廣|推广|推薦|推荐|プロモーション|프로모션|ประชาสัมพันธ์|प्रचारित|বিজ্ঞাপিত|تشہیر شدہ|مُروَّج|تبلیغی|מקודם/))
x.com#?#div[data-testid="eventHero"]:-abp-contains(/Promoted|Gesponsert|Promocionado|Sponsorisé|Sponsorizzato|Promowane|Promovido|Реклама|Uitgelicht|Sponsorlu|Promotert|Promoveret|Sponsrad|Mainostettu|Sponzorováno|Promovat|Ajánlott|Προωθημένο|Dipromosikan|Được quảng bá|推廣|推广|推薦|推荐|プロモーション|프로모션|ประชาสัมพันธ์|प्रचारित|বিজ্ঞাপিত|تشہیر شدہ|مُروَّج|تبلیغی|מקודם/)
x.com#?#div[data-testid="placementTracking"]:-abp-has(svg + div[dir="auto"] > span:-abp-contains(/Promoted|Gesponsert|Promocionado|Sponsorisé|Sponsorizzato|Promowane|Promovido|Реклама|Uitgelicht|Sponsorlu|Promotert|Promoveret|Sponsrad|Mainostettu|Sponzorováno|Promovat|Ajánlott|Προωθημένο|Dipromosikan|Được quảng bá|推廣|推广|推薦|推荐|プロモーション|프로모션|ประชาสัมพันธ์|प्रचारित|বিজ্ঞাপিত|تشہیر شدہ|مُروَّج|تبلیغی|מקודם/))
x.com#?#div[data-testid="placementTracking"]:-abp-has(div[dir="ltr"] > span:-abp-contains(/Ad/))
x.com#?#div[data-testid="trend"]:-abp-contains(/Promoted|Gesponsert|Promocionado|Sponsorisé|Sponsorizzato|Promowane|Promovido|Реклама|Uitgelicht|Sponsorlu|Promotert|Promoveret|Sponsrad|Mainostettu|Sponzorováno|Promovat|Ajánlott|Προωθημένο|Dipromosikan|Được quảng bá|推廣|推广|推薦|推荐|プロモーション|프로모션|ประชาสัมพันธ์|प्रचारित|বিজ্ঞাপিত|تشہیر شدہ|مُروَّج|تبلیغی|מקודם/)
x.com#?#h2[role="heading"]:-abp-contains(/Promoted|Gesponsert|Promocionado|Sponsorisé|Sponsorizzato|Promowane|Promovido|Реклама|Uitgelicht|Sponsorlu|Promotert|Promoveret|Sponsrad|Mainostettu|Sponzorováno|Promovat|Ajánlott|Προωθημένο|Dipromosikan|Được quảng bá|推廣|推广|推薦|推荐|プロモーション|프로모션|ประชาสัมพันธ์|प्रचारित|বিজ্ঞাপিত|تشہیر شدہ|مُروَّج|تبلیغی|מקודם/)
! This part is updated from the reddit page https://www.reddit.com/r/uBlockOrigin/wiki/solutions#wiki_twitter. They updated it sometime in March 2022, so I'm testing this out!
! My Timeline - no inserted sections (Who to follow/Topics to follow, etc.)
x.com##[aria-label="Timeline: Your Home Timeline"] div[style^="transform: translateY"][style*="position: absolute;"]:not(:first-child:has-text(/^Show \d\d? Tweets?$/)):not(:has(>div:only-child:empty, article, [href^="/i/status/"], [role="progressbar"]))
! Other Timelines - no inserted sections (Who to follow/Topics to follow, etc.)
x.com##[aria-label$="’s Tweets"] div[style^="transform: translateY"][style*="position: absolute;"]:not(:has(>div:only-child:empty, article, [href^="/i/status/"], [role="progressbar"]))
! Follow/Recommended Topic | "[Name of Topic] See more"
x.com##article [aria-label^="Follow Topic"], [aria-label^="Recommended Topic" i]:upward(article)
! More Tweets
x.com##[aria-label="Timeline: Conversation"] h2>div>span:has-text(/^More Tweets$/):upward([style^="transform"])
x.com##[aria-label="Timeline: Conversation"] h2>div>span:has-text(/^More Tweets$/):upward([style^="transform"])~div
! Fixes More Tweets/Discover More. Found by https://github.com/TheOpponent
x.com##[aria-label="Timeline: Conversation"] h2>div>span:has-text(/^Discover more$/):upward([style^="transform"])
x.com##[aria-label="Timeline: Conversation"] h2>div>span:has-text(/^Discover more$/):upward([style^="transform"])~div
! !!! SIDEBAR !!! !
! Sidebar - Topics to follow
x.com##[data-testid="sidebarColumn"] [href="/i/topics/picker/home"]:upward(section)
x.com###trends
! Sidebar - Trending now/Trends for you
x.com##[aria-label$="trending now" i]
! Sidebar - Who to follow/You might like
x.com##[aria-label="who to follow" i]:upward(1)
x.com###wtf
! Sidebar - endernon edition
! remove the verified orgs because nobody cares about that lets be honest.
! First one is for expanded (wider screen), second is for icon only (smaller width screen)
x.com##a[aria-label="Verified Orgs"]
! Remove the jank stuff from the "More" tab on the left
x.com##a div div span:has-text(Ads):upward(3)
x.com##a div div span:has-text(Monetization):upward(3)
x.com##a div div span:has-text(Jobs):upward(3)
x.com##a div div span:has-text(Create your Space):upward(3)
! Twitter sidebar bullshit halloween 2025 edition:
! Lists
x.com##header[role="banner"] div div div div div nav a[aria-label*="Lists"][role="link"]
! Premium
x.com##header[role="banner"] div div div div div nav a[aria-label*="Premium"][role="link"]
! Grox AI - it can go fuck itself with a metal pipe
! Grok button in tweet compose
x.com##div button[aria-label='Enhance your post with Grok']
! Grok button in bottom right
x.com##div div[data-testid="GrokDrawer"]
! Grok button in expanded view
x.com##div div div button[aria-label="Grok actions"]:upward(1)
! Grok explain tweet / tweet reply
x.com##div button[aria-label="Grok actions"]:upward(1)
! Grok profile summary
x.com##button[aria-label="Profile Summary"] div span:upward(2)
! Subscribe buttons
! In expanded view. The issue is, by having this the follow button just isn't there and it might make you think you're already following. Enable it if you so desire.
! x.com##div div div button[aria-label*="Subscribe to "]
! In dropdown in expanded view
x.com##div div[data-testid="Dropdown"] div div div span:has-text(Subscribe to ):upward(3)
! In profile view (already following, replaces big follow text button)
x.com##div div button[aria-label*="Subscribe to"] div span span:has-text("Subscribe"):upward(5)
! In profile view (not followed yet, circle purple button)
x.com##div div div button[aria-label*="Subscribe to"] div span:has-text(""):upward(2)