types.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /** Which domain this script is currently running on */
  2. export type Domain = "yt" | "ytm";
  3. /** Feature configuration */
  4. export interface FeatureConfig {
  5. //#SECTION input
  6. /** Arrow keys skip forwards and backwards by 10 seconds */
  7. arrowKeySupport: boolean;
  8. /** Add F9 as a hotkey to switch between the YT and YTM sites on a video / song */
  9. switchBetweenSites: boolean;
  10. /** TODO: The hotkey that needs to be pressed to initiate the site switch */
  11. switchSitesHotkey: {
  12. key: string;
  13. shift: boolean;
  14. ctrl: boolean;
  15. meta: boolean;
  16. };
  17. /** TODO: Make it so middle clicking a song to open it in a new tab (through thumbnail and song title) is easier */
  18. anchorImprovements: boolean;
  19. //#SECTION layout
  20. /** Remove the \"Upgrade\" / YT Music Premium tab */
  21. removeUpgradeTab: boolean;
  22. /** The width of the volume slider in pixels */
  23. volumeSliderSize: number;
  24. /** Volume slider sensitivity - the smaller this number, the finer the volume control */
  25. volumeSliderStep: number;
  26. /** Show a BetterYTM watermark under the YTM logo */
  27. watermarkEnabled: boolean;
  28. /** TODO: Add buttons while hovering over a song in a queue to quickly remove it or open its lyrics */
  29. queueButtons: boolean;
  30. /** TODO: Automatically dismisses the "are you still there" popup */
  31. dismissPopup: boolean;
  32. //#SECTION lyrics
  33. /** Add a button to the media controls to open the current song's lyrics on genius.com in a new tab */
  34. geniusLyrics: boolean;
  35. }