mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-04 20:00:28 +01:00
Testing prettier commit hooks
This commit is contained in:
1 parent
fbf80ab174
commit
47517ce0bd
1 file changed
+8
-6
@@ -60,10 +60,13 @@ function createRateBar(likes, dislikes) {
|
||||
colorLikeStyle = "; background-color: " + getColorFromTheme(true);
|
||||
colorDislikeStyle = "; background-color: " + getColorFromTheme(false);
|
||||
}
|
||||
let actions = isNewDesign() && getButtons().id === "top-level-buttons-computed"
|
||||
? getButtons() : document.getElementById("menu-container");
|
||||
let actions =
|
||||
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(
|
||||
"beforeend",
|
||||
`
|
||||
@@ -83,7 +86,7 @@ function createRateBar(likes, dislikes) {
|
||||
<!--css-build:shady-->${tooltipInnerHTML}
|
||||
</tp-yt-paper-tooltip>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
);
|
||||
|
||||
if (isNewDesign()) {
|
||||
@@ -101,8 +104,7 @@ function createRateBar(likes, dislikes) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
document.querySelector(`.ryd-tooltip`).style.width =
|
||||
widthPx + "px";
|
||||
document.querySelector(`.ryd-tooltip`).style.width = widthPx + "px";
|
||||
document.getElementById("ryd-bar").style.width = widthPercent + "%";
|
||||
document.querySelector("#ryd-dislike-tooltip > #tooltip").innerHTML =
|
||||
tooltipInnerHTML;
|
||||
|
||||
Reference in new issue
Block a user