123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import { info } from "../constants";
- export * from "./input";
- export * from "./layout";
- export * from "./lyrics";
- export { initMenu } from "./menu/menu"; // TODO
- export * from "./menu/menu_old";
- export type FeatureCategory = "input" | "layout" | "lyrics";
- /** Contains all possible features with their default values and other config */
- export const featInfo = Object.freeze({
- //#SECTION input
- arrowKeySupport: {
- desc: "Arrow keys skip forwards and backwards by 10 seconds",
- type: "toggle",
- category: "input",
- default: true,
- },
- switchBetweenSites: {
- desc: "Add F9 as a hotkey to switch between the YT and YTM sites on a video / song",
- type: "toggle",
- category: "input",
- default: true,
- },
- switchSitesHotkey: {
- desc: "Which hotkey needs to be pressed to switch sites?",
- type: "hotkey",
- category: "input",
- default: {
- key: "F9",
- shift: false,
- ctrl: false,
- meta: false,
- },
- },
- disableBeforeUnloadPopup: {
- desc: "Whether to completely disable the popup that sometimes appears before leaving the site",
- type: "toggle",
- category: "input",
- default: false,
- },
- anchorImprovements: {
- desc: "TODO: Make it so middle clicking a song to open it in a new tab is easier",
- type: "toggle",
- category: "input",
- default: true,
- },
- //#SECTION layout
- removeUpgradeTab: {
- desc: "Remove the \"Upgrade\" / YT Music Premium tab",
- type: "toggle",
- category: "layout",
- default: true,
- },
- volumeSliderSize: {
- desc: "The width of the volume slider in pixels",
- type: "number",
- category: "layout",
- min: 10,
- max: 1000,
- step: 5,
- unit: "px",
- default: 160,
- },
- volumeSliderStep: {
- desc: "Volume slider sensitivity - the smaller this number, the finer the volume control",
- type: "slider",
- category: "layout",
- min: 1,
- max: 20,
- default: 2,
- },
- watermarkEnabled: {
- desc: `Show a ${info.name} watermark under the YTM logo`,
- type: "toggle",
- category: "layout",
- default: true,
- },
- queueButtons: {
- desc: "TODO: Add buttons while hovering over a song in a queue to quickly remove it or open its lyrics",
- type: "toggle",
- category: "layout",
- default: true,
- },
- dismissPopup: {
- desc: "TODO: Automatically dismisses the \"are you still there\" popup",
- type: "toggle",
- category: "layout",
- default: true,
- },
- //#SECTION lyrics
- geniusLyrics: {
- desc: "Add a button to the media controls to open the current song's lyrics on genius.com in a new tab",
- type: "toggle",
- category: "lyrics",
- default: true,
- },
- });
|