From 829e11a8be0908ca21bada64a8b0c1b0518f36ac Mon Sep 17 00:00:00 2001 From: Christian Lutz Date: Sat, 2 Sep 2023 15:38:04 -0400 Subject: [PATCH] Added support for Kick.com --- README.md | 1 + extension/keysocket-kick.js | 9 +++++++++ extension/manifest.json | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 extension/keysocket-kick.js 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"]