From ba7d46dd73ee6d98fcb187fd3ae5b0e851316023 Mon Sep 17 00:00:00 2001 From: Michael C Date: Thu, 27 Jan 2022 14:52:13 -0500 Subject: [PATCH] add mediaSession, remove bindMediaKey --- package-lock.json | 13 +++++++++++++ package.json | 1 + public/_locales/en/messages.json | 6 ------ public/options/options.html | 14 -------------- src/config.ts | 2 -- src/content.ts | 18 +++++++++--------- 6 files changed, 23 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index 02867281..86391c60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,7 @@ "@types/firefox-webext-browser": "70.0.1", "@types/jest": "^24.0.23", "@types/jquery": "^3.3.31", + "@types/wicg-mediasession": "^1.1.3", "@typescript-eslint/eslint-plugin": "^4.9.1", "@typescript-eslint/parser": "^4.9.1", "chromedriver": "^92.0.0", @@ -2044,6 +2045,12 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, + "node_modules/@types/wicg-mediasession": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@types/wicg-mediasession/-/wicg-mediasession-1.1.3.tgz", + "integrity": "sha512-lzoszzJJfW9vcaIxf6tDx3lCJq/4oaD+mplA7sCV7W21PGdR6yUPwErN047ziIcwFx61w8WMURIwUyj1V7KJIQ==", + "dev": true + }, "node_modules/@types/yargs": { "version": "13.0.7", "integrity": "sha512-Sg9kNeJz+V+W+0fugcVhHC+mNHnydDR1RJrW5Qn2jVrDQARF8wfPVqIqwEzZp+bneuEBIm2ClsJ1/je42ZBzSg==", @@ -20547,6 +20554,12 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, + "@types/wicg-mediasession": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@types/wicg-mediasession/-/wicg-mediasession-1.1.3.tgz", + "integrity": "sha512-lzoszzJJfW9vcaIxf6tDx3lCJq/4oaD+mplA7sCV7W21PGdR6yUPwErN047ziIcwFx61w8WMURIwUyj1V7KJIQ==", + "dev": true + }, "@types/yargs": { "version": "13.0.7", "integrity": "sha512-Sg9kNeJz+V+W+0fugcVhHC+mNHnydDR1RJrW5Qn2jVrDQARF8wfPVqIqwEzZp+bneuEBIm2ClsJ1/je42ZBzSg==", diff --git a/package.json b/package.json index a24d859c..d897a13d 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@types/firefox-webext-browser": "70.0.1", "@types/jest": "^24.0.23", "@types/jquery": "^3.3.31", + "@types/wicg-mediasession": "^1.1.3", "@typescript-eslint/eslint-plugin": "^4.9.1", "@typescript-eslint/parser": "^4.9.1", "chromedriver": "^92.0.0", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 711667c3..b1be0523 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -918,11 +918,5 @@ }, "youtubeKeybindWarning": { "message": "This is a built-in YouTube shortcut. Are you sure you want to use it?" - }, - "bindMediaKey": { - "message": "Play/Pause Current Video with Media Keys" - }, - "bindMediaKeyDescription": { - "message": "Enable this if your media keys stop working after the audio notification is played." } } diff --git a/public/options/options.html b/public/options/options.html index e302802f..80dd6b81 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -264,20 +264,6 @@
__MSG_audioNotificationDescription__
-
-
- - -
- -
__MSG_bindMediaKeyDescription__
-
-