diff --git a/README.md b/README.md index c2c9633..500905e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ when you're listening to music on various streaming websites. * Jamendo * Jamstash * Jango.com + * Kick.com * Mixcloud * Zing MP3 * Met Opera Season On-Demand diff --git a/extension/keysocket-kick.js b/extension/keysocket-kick.js new file mode 100644 index 0000000..8c44ac3 --- /dev/null +++ b/extension/keysocket-kick.js @@ -0,0 +1,9 @@ +keySocket.init( + "kick", + function (key) { + var player = document.querySelector("video"); + if (player && key === keySocket.PLAY) { + player.paused ? player.play() : player.pause(); + } + } +); \ No newline at end of file diff --git a/extension/manifest.json b/extension/manifest.json index 4002ffb..5e1f957 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -140,6 +140,10 @@ "matches": ["*://www.jango.com/*"], "js": ["plugin-api.js", "keysocket-jango.js"] }, + { + "matches": ["*://*.kick.com/*"], + "js": ["plugin-api.js", "keysocket-kick.js"] + }, { "matches": ["*://www.linkedin.com/learning/*"], "js": ["plugin-api.js", "keysocket-linkedin-learning.js"]