Skip to content

Commit

Permalink
Fixed hiding "Subscriber" indicators in replies from subscribers
Browse files Browse the repository at this point in the history
Fixed handling the Subscribers tab in a user's followers/following page
  • Loading branch information
insin committed May 22, 2024
1 parent 722da3d commit d803d79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ const URL_MEDIAVIEWER_RE = /^\/[a-zA-Z\d_]{1,20}\/status\/\d+\/mediaviewer$/i
// Matches URLs which show one of the tabs on a user profile page
const URL_PROFILE_RE = /^\/([a-zA-Z\d_]{1,20})(?:\/(affiliates|with_replies|superfollows|highlights|articles|media|likes))?\/?$/
// Matches URLs which show a user's Followers you know / Followers / Following tab
const URL_PROFILE_FOLLOWS_RE = /^\/[a-zA-Z\d_]{1,20}\/(?:verified_followers|follow(?:ing|ers|ers_you_follow))\/?$/
const URL_PROFILE_FOLLOWS_RE = /^\/[a-zA-Z\d_]{1,20}\/(?:verified_followers|follow(?:ing|ers|ers_you_follow)|creator-subscriptions\/subscriptions)\/?$/
const URL_TWEET_RE = /^\/([a-zA-Z\d_]{1,20})\/status\/(\d+)\/?$/
const URL_TWEET_ENGAGEMENT_RE = /^\/[a-zA-Z\d_]{1,20}\/status\/\d+\/(quotes|retweets|reposts|likes)\/?$/

Expand Down Expand Up @@ -2850,8 +2850,7 @@ const configureCss = (() => {
// "Subscribe to" menu item (mobile)
'[data-testid="sheetDialog"] > [data-testid="subscribe"]',
// "Subscriber" indicator in replies from subscribers
'body.Default [data-testid="tweet"] [data-testid="userFollowIndicator"][style*="color: rgb(141, 32, 144)"]',
'body:is(.Dim, .LightsOut) [data-testid="tweet"] [data-testid="userFollowIndicator"][style*="color: rgb(223, 130, 224)"]',
'[data-testid="tweet"] [data-testid="icon-subscriber"]',
// Monetization and Subscriptions items in Settings
'body.Settings a[href="/settings/monetization"]',
'body.Settings a[href="/settings/manage_subscriptions"]',
Expand Down

0 comments on commit d803d79

Please sign in to comment.