Skip to content

Commit

Permalink
Hide the Grok Actions button in focused tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Dec 15, 2024
1 parent 1fc80df commit c6301cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3200,10 +3200,8 @@ const configureCss = (() => {
hideCssSelectors.push(
// In menus
`${menuRole} a[href$="/i/grok"]`,
// Under timeline tweets
`[data-testid="tweet"][tabindex="0"] [role="group"] > div:has(> button[aria-label="${getString('GROK_ACTIONS')}"])`,
// Under the focused tweet
`[data-testid="tweet"][tabindex="-1"] [role="group"][id^="id__"] > div:has(> button[aria-label="${getString('GROK_ACTIONS')}"])`,
// Grok Actions button
`button[aria-label="${getString('GROK_ACTIONS')}"]`,
)
}
if (config.hideMonetizationNav) {
Expand Down

0 comments on commit c6301cf

Please sign in to comment.