diff options
author | Yvon Cui <cyrilcui8581@gmail.com> | 2022-04-18 04:31:19 +0300 |
---|---|---|
committer | Yvon Cui <cyrilcui8581@gmail.com> | 2022-04-18 04:32:14 +0300 |
commit | 1139110b988467f888213b5466d98b732946739a (patch) | |
tree | c5666e6821892c8960231a8cffc94b9270be805a | |
parent | 2e6ed5298b7851b7ea84dcfa298167689f516496 (diff) |
Userscript user options
introduce user options to userscript. Using existing options available in extension for now, plus showing update popup.
Part of #539
-rw-r--r-- | Extensions/UserScript/Return Youtube Dislike.user.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Extensions/UserScript/Return Youtube Dislike.user.js b/Extensions/UserScript/Return Youtube Dislike.user.js index 9961734..6da2558 100644 --- a/Extensions/UserScript/Return Youtube Dislike.user.js +++ b/Extensions/UserScript/Return Youtube Dislike.user.js @@ -22,6 +22,20 @@ // @grant GM_addStyle // @run-at document-end // ==/UserScript== + +const extConfig = { +// BEGIN USER OPTIONS +// You may change the following variables to allowed values listed in the bracket (* means default). Keep the style and keywords intact. + showUpdatePopup: false, // [true, false*] Show popup tab after extension update (See what's new) + disableVoteSubmission: false, // [true, false*] Disable like/dislike submission (Stops counting your likes and dislikes) + coloredThumbs: false, // [true, false*] Colorize thumbs (Use custom colors for thumb icons) + coloredBar: false, // [true, false*] Colorize ratio bar (Use custom colors for ratio bar) + colorTheme: "classic", // [classic*, accessible, neon] Color theme (red/green, blue/yellow, pink/cyan) + numberDisplayFormat: "compactShort", // [compactShort*, compactLong, standard] Number format (For non-English locale users, you may be able to improve appearance with a different option. Please file a feature request if your locale is not covered) + numberDisplayRoundDown: true, // [true*, false] Round down numbers (Show rounded down numbers) +// END USER OPTIONS +}; + const LIKED_STATE = "LIKED_STATE"; const DISLIKED_STATE = "DISLIKED_STATE"; const NEUTRAL_STATE = "NEUTRAL_STATE"; |