From 73397929fd85482439e1725701da13f8076d92f8 Mon Sep 17 00:00:00 2001 From: usy Date: Thu, 26 Dec 2024 02:56:28 +0000 Subject: [PATCH] add hide live on x setting --- src/settings/settings.js | 5 +++++ src/twitter_improvements.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/settings/settings.js b/src/settings/settings.js index e694e50..78fce97 100644 --- a/src/settings/settings.js +++ b/src/settings/settings.js @@ -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": [ { diff --git a/src/twitter_improvements.js b/src/twitter_improvements.js index c79e5a9..ffde4f6 100644 --- a/src/twitter_improvements.js +++ b/src/twitter_improvements.js @@ -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()); @@ -406,6 +407,7 @@ hide_create_your_space: false, hide_post_button: false, hide_follower_requests: false, + hide_live_on_x: false, } preferences = {