From bbdeb2405c6466d7ec1e57bc2a7b5eb73d3bb6c7 Mon Sep 17 00:00:00 2001 From: usy Date: Fri, 3 Jan 2025 23:14:39 +0000 Subject: [PATCH] add hiding sidebar footer --- src/element_hiding.js | 4 +++- src/settings/settings.js | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/element_hiding.js b/src/element_hiding.js index 21e909d..712bf88 100644 --- a/src/element_hiding.js +++ b/src/element_hiding.js @@ -22,6 +22,7 @@ hide_follower_requests: false, hide_live_on_x: false, hide_post_reply_sections: false, + hide_sidebar_footer: false }, loadSettings: async () => { @@ -50,7 +51,8 @@ hide_post_button: ['div:has(> a[href="/compose/post"])'], hide_follower_requests: ['a[href="/follower_requests"]'], hide_live_on_x: ['div:has(> [data-testid="placementTracking"] > [aria-label^="Space,"])'], - hide_post_reply_sections: ['div:has(> div > div[role="progressbar"] + div > div > div > div > div > div > div[data-testid^="UserAvatar-Container"])'] + hide_post_reply_sections: ['div:has(> div > div[role="progressbar"] + div > div > div > div > div > div > div[data-testid^="UserAvatar-Container"])'], + hide_sidebar_footer: ['div:has(> [aria-label="Footer"])'] }, start: () => { document.querySelectorAll('style[usyStyle]').forEach((e) => e.remove()); diff --git a/src/settings/settings.js b/src/settings/settings.js index a85ac5f..545503b 100644 --- a/src/settings/settings.js +++ b/src/settings/settings.js @@ -241,6 +241,11 @@ const options = { name: 'hide_post_reply_sections', description: '"Post" and "Reply" sections', default: false + }, + { + name: 'hide_sidebar_footer', + description: 'Additional sidebar urls, under the search bar', + default: false } ], "Extras": [