Streamkeys

Streamkeys

Global hotkeys for online music players including support for media keys.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 3,
  "name": "Streamkeys",
  "version": "1.8.5",
  "description": "Global hotkeys for online music players including support for media keys.",
  "background": {
    "service_worker": "js/background.bundle.js"
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "js/contentscript.js",
        "js/content.js"
      ]
    }
  ],
  "icons": {
    "128": "assets/icons/icon128.png"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "js/inject/hoopla_inject.js",
        "js/inject/musickit_inject.js",
        "js/inject/palcomp3_inject.js",
        "js/inject/seesu_inject.js",
        "js/controllers/*"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ]
    }
  ],
  "action": {
    "default_title": "Streamkeys",
    "default_popup": "popup.html",
    "default_icon": "assets/icons/icon38.png"
  },
  "options_ui": {
    "page": "options.html",
    "open_in_tab": true
  },
  "permissions": [
    "tabs",
    "storage",
    "declarativeNetRequest",
    "scripting",
    "notifications"
  ],
  "host_permissions": [
    "http://*/*",
    "https://*/*"
  ],
  "commands": {
    "playPause": {
      "suggested_key": {
        "default": "MediaPlayPause"
      },
      "global": true,
      "description": "Toggle play/pause"
    },
    "playNext": {
      "suggested_key": {
        "default": "MediaNextTrack"
      },
      "global": true,
      "description": "Play next track"
    },
    "playPrev": {
      "suggested_key": {
        "default": "MediaPrevTrack"
      },
      "global": true,
      "description": "Play previous track"
    },
    "mute": {
      "suggested_key": {
        "default": "Ctrl+Shift+2",
        "mac": "MacCtrl+Shift+2"
      },
      "global": true,
      "description": "Toggle mute"
    },
    "stop": {
      "suggested_key": {
        "default": "MediaStop"
      },
      "global": true,
      "description": "Stop all players"
    },
    "like": {
      "global": true,
      "description": "Toggle like"
    },
    "dislike": {
      "global": true,
      "description": "Toggle dislike"
    },
    "playerStateNotify": {
      "global": true,
      "description": "Send notification of player(s) state"
    }
  }
}