mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 06:13:07 +01:00
Feat #211 update val name in extConfig
This commit is contained in:
1 parent
1057036600
commit
1db5bf3aad
1 file changed
+3
-3
@@ -35,7 +35,7 @@ const extConfig = {
|
||||
numberDisplayRoundDown: true, // [true*, false] Round down numbers (Show rounded down numbers)
|
||||
|
||||
// READING THIS ^ INFO IS NOT IMPLEMENTED HERE (LOOK AT PULL REQUEST #540)
|
||||
tooltipPercentageDisplayOption: "classic", // [classic*, dash_like, dash_dislike, both, only_like, only_dislike] Mode of showing percentage in like/dislike bar tooltip.
|
||||
tooltipPercentageDisplayOption: "none", // [none*, dash_like, dash_dislike, both, only_like, only_dislike] Mode of showing percentage in like/dislike bar tooltip.
|
||||
// END USER OPTIONS
|
||||
};
|
||||
|
||||
@@ -225,7 +225,7 @@ function createRateBar(likes, dislikes) {
|
||||
const dislikePercentage = (100 - likePercentage).toLocaleString();
|
||||
likePercentage = likePercentage.toLocaleString();
|
||||
const tooltipPercentageDisplayModes = {
|
||||
"classic": `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`,
|
||||
"none": `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`,
|
||||
"dash_like": `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${likePercentage}%`,
|
||||
"dash_dislike": `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${dislikePercentage}%`,
|
||||
"both": `${likePercentage}% / ${dislikePercentage}%`,
|
||||
@@ -234,7 +234,7 @@ function createRateBar(likes, dislikes) {
|
||||
};
|
||||
|
||||
if (tooltipPercentageDisplayModes[extConfig.tooltipPercentageDisplayOption] === undefined) {
|
||||
extConfig.tooltipPercentageDisplayOption = "classic";
|
||||
extConfig.tooltipPercentageDisplayOption = "none";
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user