mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
cherry pick from previously broken and abandoned branch
colorize buttons and ratio bar Resolves #218 Using user options (#387) edit color schemes logistics for the added options handles storage, change, initialize
This commit is contained in:
1 parent
510c083c77
commit
b476c60fe0
7 files changed
+210
-8
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { getButtons } from "./buttons";
|
||||
import { likesDisabledState } from "./state";
|
||||
import { likesDisabledState, extConfig } from "./state";
|
||||
import { cLog } from "./utils";
|
||||
|
||||
function createRateBar(likes, dislikes) {
|
||||
@@ -46,6 +46,11 @@ function createRateBar(likes, dislikes) {
|
||||
"#ryd-dislike-tooltip > #tooltip"
|
||||
).innerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
|
||||
}
|
||||
|
||||
if (extConfig.coloredBar) {
|
||||
// TODO: colorize bar
|
||||
}
|
||||
|
||||
} else {
|
||||
cLog("removing bar");
|
||||
let ratebar = document.getElementById("ryd-bar-container");
|
||||
|
||||
Reference in new issue
Block a user