mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-02-04 05:24:08 +00:00
feat: Add toggle to swap the order of like/dislike buttons (#4221)
This commit is contained in:
13
src/menu.ts
13
src/menu.ts
@ -285,6 +285,19 @@ export const mainMenuTemplate = async (
|
||||
config.set('options.likeButtons', 'hide');
|
||||
},
|
||||
},
|
||||
{
|
||||
label: t(
|
||||
'main.menu.options.submenu.visual-tweaks.submenu.like-buttons.swap',
|
||||
),
|
||||
type: 'checkbox',
|
||||
checked: config.get('options.swapLikeButtonsOrder'),
|
||||
click(item: MenuItem) {
|
||||
config.setMenuOption(
|
||||
'options.swapLikeButtonsOrder',
|
||||
item.checked,
|
||||
);
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user