mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 12:21:47 +00:00
14
preload.js
14
preload.js
@ -135,11 +135,17 @@ function onApiLoaded() {
|
||||
}
|
||||
}
|
||||
|
||||
// Force show like buttons
|
||||
if (config.get("options.ForceShowLikeButtons")) {
|
||||
const likeButtons = document.querySelector('ytmusic-like-button-renderer')
|
||||
|
||||
// Hide / Force show like buttons
|
||||
const likeButtonsOptions = config.get("options.likeButtons");
|
||||
if (likeButtonsOptions) {
|
||||
const likeButtons = document.querySelector("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