1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /** Env object passed to webpack.config.js */
- export type WebpackEnv = Partial<Record<"mode", "production" | "development">> & Record<"WEBPACK_BUNDLE" | "WEBPACK_BUILD", boolean>;
- /** 0 = Debug, 1 = Info */
- export type LogLevel = 0 | 1;
- /** Which domain this script is currently running on */
- export type Domain = "yt" | "ytm";
- /** Feature configuration */
- export interface FeatureConfig {
- //#SECTION input
- /** Arrow keys skip forwards and backwards by 10 seconds */
- arrowKeySupport: boolean;
- /** Add F9 as a hotkey to switch between the YT and YTM sites on a video / song */
- switchBetweenSites: boolean;
- /** The hotkey that needs to be pressed to initiate the site switch */
- switchSitesHotkey: {
- key: string;
- shift: boolean;
- ctrl: boolean;
- meta: boolean;
- };
- /** Whether to completely disable the popup that sometimes appears before leaving the site */
- disableBeforeUnloadPopup: boolean;
- /** Make it so middle clicking a song to open it in a new tab (through thumbnail and song title) is easier */
- anchorImprovements: boolean;
- //#SECTION layout
- /** Remove the \"Upgrade\" / YT Music Premium tab */
- removeUpgradeTab: boolean;
- /** Add a percentage label to the volume slider */
- volumeSliderLabel: boolean;
- /** The width of the volume slider in pixels */
- volumeSliderSize: number;
- /** Volume slider sensitivity - the smaller this number, the finer the volume control */
- volumeSliderStep: number;
- /** Show a BetterYTM watermark under the YTM logo */
- watermarkEnabled: boolean;
- /** Add buttons while hovering over a song in a queue to quickly remove it or open its lyrics */
- queueButtons: boolean;
- /** After how many milliseconds to close permanent toasts */
- closeToastsTimeout: number;
- //#SECTION lyrics
- /** Add a button to the media controls to open the current song's lyrics on genius.com in a new tab */
- geniusLyrics: boolean;
- // /** Add a button to each song in the queue to allow for quickly pre-opening lyrics pages of upcoming songs */
- // geniusLyricsInQueue: boolean;
- }
|