Created
July 5, 2022 06:50
-
-
Save fionn/333f6ac5a45759877106ac0e2a642790 to your computer and use it in GitHub Desktop.
Blocklist to remove liked and recommended tweets from the Twitter timeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! https://www.reddit.com/r/uBlockOrigin/wiki/solutions#wiki_twitter | |
! My Timeline - no inserted sections (Who to follow/Topics to follow, etc.) | |
twitter.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"])):style(opacity: 0.2 !important) | |
! Other Timelines - no inserted sections (Who to follow/Topics to follow, etc.) | |
twitter.com##[aria-label$="’s Tweets"] div[style^="transform: translateY"][style*="position: absolute;"]:not(:has(>div:only-child:empty, article, [href^="/i/status/"], [role="progressbar"])):style(opacity: 0.2 !important) | |
! [User] liked | |
twitter.com##:is([aria-label="Timeline: Your Home Timeline"], [aria-label$="’s Tweets"]) article :not([role="button"]>div>div>svg>g>path)[d$="13.157H12z"]:upward(article):style(opacity: 0.2 !important) | |
! [User] Retweeted | |
!twitter.com##:is([aria-label="Timeline: Your Home Timeline"], [aria-label$="’s Tweets"]) article :not([data-testid="unretweet"]>div>div>svg>g>path)[d^="M23.615 15.477c"]:upward(article):not(:has([data-testid="socialContext"]:has-text(/^You/))) | |
! [User] received a reply | |
twitter.com##[aria-label="Timeline: Your Home Timeline"] article [d$="43-7.787-7.8-7.788z"]:upward([style*="position: absolute"]):has([data-testid="socialContext"]:has-text(/reply$/)):style(opacity: 0.2 !important) | |
twitter.com##[aria-label="Timeline: Your Home Timeline"] article [d$="43-7.787-7.8-7.788z"]:upward([style*="position: absolute"]):has([data-testid="socialContext"]:has-text(/reply$/))+div:style(opacity: 0.2 !important) | |
! [User] received replies | |
twitter.com##[aria-label="Timeline: Your Home Timeline"] article [d$="43-7.787-7.8-7.788z"]:upward([style*="position: absolute"]):has([data-testid="socialContext"]:has-text(/replies$/)):style(opacity: 0.2 !important) | |
twitter.com##[aria-label="Timeline: Your Home Timeline"] article>div:first-child:not(:last-child):upward([style*="position: absolute"]):style(opacity: 0.2 !important) | |
! [User] replied | |
!twitter.com##[aria-label="Timeline: Your Home Timeline"] article [d$="43-7.787-7.8-7.788z"]:upward([style*="position: absolute"]):has([data-testid="socialContext"]:has-text(/replied$/)) | |
!twitter.com##[aria-label="Timeline: Your Home Timeline"] article [d$="43-7.787-7.8-7.788z"]:upward([style*="position: absolute"]):has([data-testid="socialContext"]:has-text(/replied$/))+div | |
! Follow/Recommended Topic | "[Name of Topic] See more" | |
twitter.com##article [aria-label^="Follow Topic"], [aria-label^="Recommended Topic" i]:upward(article):style(opacity: 0.2 !important) | |
! Like and Retweet counts | Remove ` [data-testid="app-text-transition-container"]` to hide entire buttons | |
!twitter.com##[data-testid="retweet"] [data-testid="app-text-transition-container"], [data-testid="like"] [data-testid="app-text-transition-container"] | |
! [User] follows | |
twitter.com##[aria-label="Timeline: Your Home Timeline"] article [d^="M12.225 12.165c-1.356"]:upward(article) | |
! More Tweets | |
twitter.com##[aria-label="Timeline: Conversation"] h2>div>span:has-text(/^More Tweets$/):upward([style^="transform"]):style(opacity: 0.2 !important) | |
twitter.com##[aria-label="Timeline: Conversation"] h2>div>span:has-text(/^More Tweets$/):upward([style^="transform"])~div:style(opacity: 0.2 !important) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment