mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
Merge branch 'local-upstream/master' into add-starting-page-option
This commit is contained in:
14
preload.js
14
preload.js
@ -145,11 +145,17 @@ function onApiLoaded() {
|
||||
}
|
||||
}
|
||||
|
||||
// Force show like buttons
|
||||
if (config.get("options.ForceShowLikeButtons")) {
|
||||
const likeButtons = $('ytmusic-like-button-renderer')
|
||||
|
||||
// Hide / Force show like buttons
|
||||
const likeButtonsOptions = config.get("options.likeButtons");
|
||||
if (likeButtonsOptions) {
|
||||
const likeButtons = $("ytmusic-like-button-renderer");
|
||||
if (likeButtons) {
|
||||
likeButtons.style.display = 'inherit';
|
||||
likeButtons.style.display =
|
||||
{
|
||||
hide: "none",
|
||||
force: "inherit",
|
||||
}[likeButtonsOptions] || "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user