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
@@ -110,12 +110,39 @@ function storageChangeHandler(changes, area) {
|
||||
changes.disableVoteSubmission.newValue
|
||||
);
|
||||
}
|
||||
if (changes.coloredThumbs !== undefined) {
|
||||
handleColoredThumbsChangeEvent(
|
||||
changes.coloredThumbs.newValue
|
||||
);
|
||||
}
|
||||
if (changes.coloredBar !== undefined) {
|
||||
handleColoredBarChangeEvent(
|
||||
changes.coloredBar.newValue
|
||||
);
|
||||
}
|
||||
if (changes.colorTheme !== undefined) {
|
||||
handleColorThemeChangeEvent(
|
||||
changes.colorTheme.newValue
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function handleDisableVoteSubmissionChangeEvent(value) {
|
||||
extConfig.disableVoteSubmission = value;
|
||||
}
|
||||
|
||||
function handleColoredThumbsChangeEvent(value) {
|
||||
extConfig.coloredThumbs = value;
|
||||
}
|
||||
|
||||
function handleColoredBarChangeEvent(value) {
|
||||
extConfig.coloredBar = value;
|
||||
}
|
||||
|
||||
function handleColorThemeChangeEvent(value) {
|
||||
extConfig.colorTheme = value;
|
||||
}
|
||||
|
||||
export {
|
||||
sendVote,
|
||||
sendVideoIds,
|
||||
|
||||
Reference in new issue
Block a user