From 89ebc230e06e08bd1fe69dee52cdbd0d4601b7e0 Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 9 Apr 2022 22:57:57 +0200 Subject: [PATCH 1/2] Add plugin to bypass age restrictions (with userscript) --- package.json | 1 + plugins/bypass-age-restrictions/front.js | 4 ++++ yarn.lock | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 plugins/bypass-age-restrictions/front.js diff --git a/package.json b/package.json index fa14990e..503ebd87 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,7 @@ "@electron/remote": "^2.0.5", "@ffmpeg/core": "^0.10.0", "@ffmpeg/ffmpeg": "^0.10.1", + "Simple-YouTube-Age-Restriction-Bypass": "https://gitpkg.now.sh/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/dist?v2.4.6", "async-mutex": "^0.3.2", "browser-id3-writer": "^4.4.0", "chokidar": "^3.5.3", diff --git a/plugins/bypass-age-restrictions/front.js b/plugins/bypass-age-restrictions/front.js new file mode 100644 index 00000000..381fa656 --- /dev/null +++ b/plugins/bypass-age-restrictions/front.js @@ -0,0 +1,4 @@ +module.exports = () => { + // See https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass#userscript + require("simple-youtube-age-restriction-bypass/Simple-YouTube-Age-Restriction-Bypass.user.js"); +}; diff --git a/yarn.lock b/yarn.lock index 12d060ed..6292a2fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1687,6 +1687,10 @@ "@typescript-eslint/types" "4.33.0" eslint-visitor-keys "^2.0.0" +"Simple-YouTube-Age-Restriction-Bypass@https://gitpkg.now.sh/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/dist?v2.4.6": + version "0.0.0" + resolved "https://gitpkg.now.sh/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/dist?v2.4.6#ac26ebb688667ce4ec6566ffbd3a75dbe2ac9a55" + abab@^2.0.3, abab@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" From a1c6dfb199e8d163c6b30e91152ae9c8344147e8 Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 9 Apr 2022 23:00:02 +0200 Subject: [PATCH 2/2] Add plugin for age restrictions --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 10b6a279..9dd37bfb 100644 --- a/readme.md +++ b/readme.md @@ -41,6 +41,8 @@ Install the `youtube-music-bin` package from the AUR. For AUR installation instr - **Blur Nav Bar**: makes navigation bar transparent and blurry +- **Bypass age restrictions**: bypass YouTube's age verification + - **Disable Autoplay**: Makes every song start in "paused" mode - [**Discord**](https://discord.com/): Show your friends what you listen to with [Rich Presence](https://user-images.githubusercontent.com/28219076/104362104-a7a0b980-5513-11eb-9744-bb89eabe0016.png)