Skip to content

Commit

Permalink
add hiding sidebar footer
Browse files Browse the repository at this point in the history
  • Loading branch information
usyless committed Jan 3, 2025
1 parent 6370c19 commit bbdeb24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/element_hiding.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
hide_follower_requests: false,
hide_live_on_x: false,
hide_post_reply_sections: false,
hide_sidebar_footer: false
},

loadSettings: async () => {
Expand Down Expand Up @@ -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());
Expand Down
5 changes: 5 additions & 0 deletions src/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit bbdeb24

Please sign in to comment.