mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 22:33:01 +01:00
bug fix: colors were swapped for certain videos
Rewind 2018 has "if (!rateBar)" to be false in createRateBar()
This commit is contained in:
1 parent
ec6f624a29
commit
b4bf27bbde
1 file changed
+2
-2
@@ -55,8 +55,8 @@ function createRateBar(likes, dislikes) {
|
||||
"#ryd-dislike-tooltip > #tooltip"
|
||||
).innerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
|
||||
if (extConfig.coloredBar) {
|
||||
document.getElementById("ryd-bar-container").style.backgroundColor = getColorFromTheme(true);
|
||||
document.getElementById("ryd-bar").style.backgroundColor = getColorFromTheme(false);
|
||||
document.getElementById("ryd-bar-container").style.backgroundColor = getColorFromTheme(false);
|
||||
document.getElementById("ryd-bar").style.backgroundColor = getColorFromTheme(true);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user