Testing prettier commit hooks

This commit is contained in:
Anarios committed 2024-01-14 21:41:37 +01:00
1 parent fbf80ab174
commit 47517ce0bd
1 file changed
+8 -6
+8 -6
View File
@@ -60,10 +60,13 @@ function createRateBar(likes, dislikes) {
colorLikeStyle = "; background-color: " + getColorFromTheme(true); colorLikeStyle = "; background-color: " + getColorFromTheme(true);
colorDislikeStyle = "; background-color: " + getColorFromTheme(false); colorDislikeStyle = "; background-color: " + getColorFromTheme(false);
} }
let actions = isNewDesign() && getButtons().id === "top-level-buttons-computed" let actions =
? getButtons() : document.getElementById("menu-container"); isNewDesign() && getButtons().id === "top-level-buttons-computed"
? getButtons()
: document.getElementById("menu-container");
( (
actions || document.querySelector("ytm-slim-video-action-bar-renderer") actions ||
document.querySelector("ytm-slim-video-action-bar-renderer")
).insertAdjacentHTML( ).insertAdjacentHTML(
"beforeend", "beforeend",
` `
@@ -83,7 +86,7 @@ function createRateBar(likes, dislikes) {
<!--css-build:shady-->${tooltipInnerHTML} <!--css-build:shady-->${tooltipInnerHTML}
</tp-yt-paper-tooltip> </tp-yt-paper-tooltip>
</div> </div>
` `,
); );
if (isNewDesign()) { if (isNewDesign()) {
@@ -101,8 +104,7 @@ function createRateBar(likes, dislikes) {
} }
} }
} else { } else {
document.querySelector(`.ryd-tooltip`).style.width = document.querySelector(`.ryd-tooltip`).style.width = widthPx + "px";
widthPx + "px";
document.getElementById("ryd-bar").style.width = widthPercent + "%"; document.getElementById("ryd-bar").style.width = widthPercent + "%";
document.querySelector("#ryd-dislike-tooltip > #tooltip").innerHTML = document.querySelector("#ryd-dislike-tooltip > #tooltip").innerHTML =
tooltipInnerHTML; tooltipInnerHTML;