Skip to content

Commit

Permalink
New tweak: Hidden following/mutuals indicators (#1125)
Browse files Browse the repository at this point in the history
Co-authored-by: April Sylph <[email protected]>
  • Loading branch information
marcustyphoon and AprilSylph authored Aug 11, 2023
1 parent b4f78bf commit 248912f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scripts/tweaks.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
"default": false,
"inherit": "tweaks.preferences.subtle_follow"
},
"hide_activity_mutuals": {
"type": "checkbox",
"label": "Hide following/mutuals indicators on notifications",
"default": false
},
"hide_footer_tooltips": {
"type": "checkbox",
"label": "Hide control button tooltips in the post footer",
Expand Down
11 changes: 11 additions & 0 deletions src/scripts/tweaks/hide_activity_mutuals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { keyToCss } from '../../util/css_map.js';
import { buildStyle } from '../../util/interface.js';

const styleElement = buildStyle(`
${keyToCss('activity')} ${keyToCss('generalLabelContainer')} {
display: none;
}
`);

export const main = async () => document.documentElement.append(styleElement);
export const clean = async () => styleElement.remove();

0 comments on commit 248912f

Please sign in to comment.