Skip to content

Commit

Permalink
add hide live on x setting
Browse files Browse the repository at this point in the history
  • Loading branch information
usyless committed Dec 26, 2024
1 parent 27463d5 commit 7339792
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ const options = {
description: 'Who To Follow tab',
default: false
},
{
name: 'hide_live_on_x',
description: 'Live on X tab',
default: false
}
],
"Extras": [
{
Expand Down
2 changes: 2 additions & 0 deletions src/twitter_improvements.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@
hide_create_your_space: ['a[href="/i/spaces/start"]'],
hide_post_button: ['div:has(> a[href="/compose/post"])'],
hide_follower_requests: ['a[href="/follower_requests"]'],
hide_live_on_x: ['div:has(> div[data-testid="placementTracking"] > button[aria-label*="Space,"])']
},
start: () => {
document.querySelectorAll('style[usyStyle]').forEach((e) => e.remove());
Expand Down Expand Up @@ -406,6 +407,7 @@
hide_create_your_space: false,
hide_post_button: false,
hide_follower_requests: false,
hide_live_on_x: false,
}

preferences = {
Expand Down

0 comments on commit 7339792

Please sign in to comment.