Skip to content

Commit

Permalink
Tweaks: Improve badge hiding tweak reliability (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Oct 27, 2024
1 parent 2283be8 commit 96b599a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/features/tweaks/hide_activity_notification_badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { keyToCss } from '../../utils/css_map.js';
import { buildStyle } from '../../utils/interface.js';
import { translate } from '../../utils/language_data.js';

const activityButton = `button[aria-label="${translate('Activity')}"]`;
const activityButton = ':is(button, li):has(use[href="#managed-icon__lightning"])';
const mobileMenuButton = `button[aria-label="${translate('Menu')}"]`;

export const styleElement = buildStyle(`
Expand Down
2 changes: 1 addition & 1 deletion src/features/tweaks/hide_communities_notification_badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { keyToCss } from '../../utils/css_map.js';
import { buildStyle } from '../../utils/interface.js';
import { translate } from '../../utils/language_data.js';

const communitiesButton = `button[aria-label="${translate('Communities')}"]`;
const communitiesButton = ':is(button, li):has(use[href="#managed-icon__communities"])';
const mobileMenuButton = `button[aria-label="${translate('Menu')}"]`;

export const styleElement = buildStyle(`
Expand Down
2 changes: 1 addition & 1 deletion src/features/tweaks/hide_following_notification_badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { buildStyle } from '../../utils/interface.js';
import { translate } from '../../utils/language_data.js';
import { pageModifications } from '../../utils/mutations.js';

const followingHomeButton = `:is(li[title="${translate('Home')}"], button[aria-label="${translate('Home')}"], a[href="/dashboard/following"])`;
const followingHomeButton = `:is(li[title="${translate('Home')}"], button[aria-label="${translate('Home')}"], a[href="/dashboard/following"], a[href="/dashboard"])`;
const mobileMenuButton = `button[aria-label="${translate('Menu')}"]`;

const customTitleElement = dom('title', { 'data-xkit': true });
Expand Down

0 comments on commit 96b599a

Please sign in to comment.