types.d.ts 973 B

12345678910111213141516171819202122
  1. /** Which domain this script is currently running on */
  2. export type Domain = "yt" | "ytm";
  3. /** Feature configuration */
  4. export interface FeatureConfig {
  5. /** Arrow keys skip forwards and backwards by 10 seconds */
  6. arrowKeySupport: boolean;
  7. /** Remove the \"Upgrade\" / YT Music Premium tab */
  8. removeUpgradeTab: boolean;
  9. /** Add F9 as a hotkey to switch between the YT and YTM sites on a video / song */
  10. switchBetweenSites: boolean;
  11. /** Add a button to the media controls to open the current song's lyrics on genius.com in a new tab */
  12. geniusLyrics: boolean;
  13. /** TODO: Add a lyrics button to each song in the queue (\"up next\" tab) */
  14. lyricsButtonsOnSongQueue: boolean;
  15. /** The width of the volume slider in pixels */
  16. volumeSliderSize: number;
  17. /** Volume slider sensitivity - the smaller this number, the finer the volume control */
  18. volumeSliderStep: number;
  19. /** Show a BetterYTM watermark under the YTM logo */
  20. watermarkEnabled: boolean;
  21. }