mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-02-02 04:33:43 +00:00
feat: Add toggle to swap the order of like/dislike buttons (#4221)
This commit is contained in:
@ -406,6 +406,18 @@ async function onApiLoaded() {
|
||||
|
||||
document.head.appendChild(style);
|
||||
}
|
||||
|
||||
// Swap like button order
|
||||
if (window.mainConfig.get('options.swapLikeButtonsOrder')) {
|
||||
const style = document.createElement('style');
|
||||
style.textContent = `
|
||||
#like-button-renderer {
|
||||
display: inline-flex;
|
||||
flex-direction: row-reverse;
|
||||
}`;
|
||||
|
||||
document.head.appendChild(style);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user