Skip to content

Commit

Permalink
Hide the new Premium upsell in the mobile timeline header
Browse files Browse the repository at this point in the history
Closes #626
  • Loading branch information
insin committed Aug 14, 2024
1 parent 620cb00 commit 3f33002
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3362,7 +3362,10 @@ const configureCss = (() => {
hideCssSelectors.push(`${Selectors.PRIMARY_NAV_MOBILE} a[href="/messages"]`)
}
if (config.hideTwitterBlueUpsells) {
hideCssSelectors.push(`${Selectors.PRIMARY_NAV_MOBILE} a[href^="/i/premium"]`)
hideCssSelectors.push(
`${Selectors.PRIMARY_NAV_MOBILE} a[href^="/i/premium"]`,
`${Selectors.MOBILE_TIMELINE_HEADER} a[href^="/i/premium"]`,
)
}
if (config.hideShareTweetButton) {
hideCssSelectors.push(
Expand Down

0 comments on commit 3f33002

Please sign in to comment.