From 72670e99c8649aa090ce30b93b9312c2c4d2e969 Mon Sep 17 00:00:00 2001 From: drunkwinter <38593134+drunkwinter@users.noreply.github.com> Date: Sat, 24 Jun 2023 01:04:29 +0000 Subject: [PATCH] Release v2.5.6 --- ...ple-YouTube-Age-Restriction-Bypass.user.js | 28 +++++++++++-------- package-lock.json | 4 +-- package.json | 2 +- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/dist/Simple-YouTube-Age-Restriction-Bypass.user.js b/dist/Simple-YouTube-Age-Restriction-Bypass.user.js index 22a2c02..c506c47 100644 --- a/dist/Simple-YouTube-Age-Restriction-Bypass.user.js +++ b/dist/Simple-YouTube-Age-Restriction-Bypass.user.js @@ -1,11 +1,11 @@ // ==UserScript== // @name Simple YouTube Age Restriction Bypass -// @description Watch age restricted videos on YouTube without login and without age verification :) -// @description:de Schaue YouTube Videos mit Altersbeschränkungen ohne Anmeldung und ohne dein Alter zu bestätigen :) -// @description:fr Regardez des vidéos YouTube avec des restrictions d'âge sans vous inscrire et sans confirmer votre âge :) -// @description:it Guarda i video con restrizioni di età su YouTube senza login e senza verifica dell'età :) +// @description Watch age restricted videos on YouTube without login and without age verification 😎 +// @description:de Schaue YouTube Videos mit Altersbeschränkungen ohne Anmeldung und ohne dein Alter zu bestätigen 😎 +// @description:fr Regardez des vidéos YouTube avec des restrictions d'âge sans vous inscrire et sans confirmer votre âge 😎 +// @description:it Guarda i video con restrizioni di età su YouTube senza login e senza verifica dell'età 😎 // @icon https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/raw/v2.5.4/src/extension/icon/icon_64.png -// @version 2.5.5 +// @version 2.5.6 // @author Zerody (https://github.com/zerodytrash) // @namespace https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/ // @supportURL https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/issues @@ -16,11 +16,11 @@ // @match https://music.youtube.com/* // @grant none // @run-at document-start -// @compatible chrome Chrome + Tampermonkey or Violentmonkey -// @compatible firefox Firefox + Greasemonkey or Tampermonkey or Violentmonkey -// @compatible opera Opera + Tampermonkey or Violentmonkey -// @compatible edge Edge + Tampermonkey or Violentmonkey -// @compatible safari Safari + Tampermonkey or Violentmonkey +// @compatible chrome +// @compatible firefox +// @compatible opera +// @compatible edge +// @compatible safari // ==/UserScript== /* @@ -654,11 +654,15 @@ }; function getUnlockStrategies$1(videoId, lastPlayerUnlockReason) { - const client = getYtcfgValue('INNERTUBE_CONTEXT'); + var _getYtcfgValue$client; const clientName = getYtcfgValue('INNERTUBE_CLIENT_NAME') || 'WEB'; const clientVersion = getYtcfgValue('INNERTUBE_CLIENT_VERSION') || '2.20220203.04.00'; const hl = getYtcfgValue('HL'); - const userInterfaceTheme = client.userInterfaceTheme; + const userInterfaceTheme = (_getYtcfgValue$client = getYtcfgValue('INNERTUBE_CONTEXT').client.userInterfaceTheme) !== null && _getYtcfgValue$client !== void 0 + ? _getYtcfgValue$client + : document.documentElement.hasAttribute('dark') + ? 'USER_INTERFACE_THEME_DARK' + : 'USER_INTERFACE_THEME_LIGHT'; return [ /** diff --git a/package-lock.json b/package-lock.json index 55ae147..b525ed0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-youtube-age-restriction-bypass", - "version": "2.5.5", + "version": "2.5.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-youtube-age-restriction-bypass", - "version": "2.5.5", + "version": "2.5.6", "license": "MIT", "workspaces": [ "account-proxy" diff --git a/package.json b/package.json index 55edae8..c5ec63c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "type": "module", "name": "simple-youtube-age-restriction-bypass", "description": "A simple userscript to bypass YouTube's age verification and watch age restricted videos without having to sign in.", - "version": "2.5.5", + "version": "2.5.6", "repository": { "type": "git", "url": "git+https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass.git"