From b855726973b923d736d33c761fe3687f02a4bcaa Mon Sep 17 00:00:00 2001 From: TC Date: Fri, 13 Mar 2020 23:06:07 +0100 Subject: [PATCH] New plugin: autoconfirm when paused --- package.json | 1 + plugins/auto-confirm-when-paused/front.js | 12 ++++++++++++ readme.md | 1 + 3 files changed, 14 insertions(+) create mode 100644 plugins/auto-confirm-when-paused/front.js diff --git a/package.json b/package.json index 500363fd..545d7597 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "npm": "Please use yarn and not npm" }, "dependencies": { + "YoutubeNonStop": "git://github.com/lawfx/YoutubeNonStop.git#v0.7.1", "ad-block": "^4.1.3", "electron-debug": "^2.0.0", "electron-is": "^3.0.0", diff --git a/plugins/auto-confirm-when-paused/front.js b/plugins/auto-confirm-when-paused/front.js new file mode 100644 index 00000000..0ead302e --- /dev/null +++ b/plugins/auto-confirm-when-paused/front.js @@ -0,0 +1,12 @@ +// Define global chrome object to be compliant with the extension code +global.chrome = { + runtime: { + getManifest: () => ({ + version: 1 + }) + } +}; + +module.exports = () => { + require("YoutubeNonStop/autoconfirm.js"); +}; diff --git a/readme.md b/readme.md index aa1e556f..72946fb4 100644 --- a/readme.md +++ b/readme.md @@ -23,6 +23,7 @@ You can check out the [latest release](https://github.com/th-ch/youtube-music/re - **No Google Login**: remove Google login buttons and links from the interface - **Shortcuts**: use your usual shortcuts (media keys, Ctrl/CMD + F…) to control YouTube Music - **Navigation**: next/back navigation arrows directly integrated in the interface, like in your favorite browser +- **Auto confirm when paused**: when the "Continue Watching?" modal appears, automatically click "Yes" ## Dev