Skip to content

Commit

Permalink
Release v2.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkwinter authored and github-actions[bot] committed May 23, 2023
1 parent 4f1d068 commit 7727068
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
21 changes: 12 additions & 9 deletions dist/Simple-YouTube-Age-Restriction-Bypass.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
// @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à :)
// @version 2.5.4
// @icon https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/raw/v2.5.4/src/extension/icon/icon_64.png
// @version 2.5.5
// @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
// @license MIT
// @match https://www.youtube.com/*
// @match https://m.youtube.com/*
// @match https://www.youtube-nocookie.com/*
// @match https://m.youtube.com/*
// @match https://music.youtube.com/*
// @grant none
// @run-at document-start
Expand Down Expand Up @@ -653,9 +654,11 @@
};

function getUnlockStrategies$1(videoId, lastPlayerUnlockReason) {
const client = getYtcfgValue('INNERTUBE_CONTEXT');
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;

return [
/**
Expand All @@ -669,9 +672,10 @@
payload: {
context: {
client: {
clientName: clientName,
clientVersion: clientVersion,
clientName,
clientVersion,
hl,
userInterfaceTheme,
},
},
videoId,
Expand All @@ -692,6 +696,7 @@
clientName,
clientVersion,
hl,
userInterfaceTheme,
isEmbed: +isEmbed,
isConfirmed: +isConfirmed,
},
Expand Down Expand Up @@ -820,7 +825,7 @@
}

var buttonTemplate =
'<div style="margin-top: 15px !important; padding: 3px 10px 3px 10px; margin: 0px auto; background-color: #4d4d4d; width: fit-content; font-size: 1.2em; text-transform: uppercase; border-radius: 3px; cursor: pointer;">\r\n <div class="button-text"></div>\r\n</div>';
'<div style="margin-top: 15px !important; padding: 3px 10px 3px 10px; margin: 0px auto; background-color: #4d4d4d; width: fit-content; font-size: 1.2em; text-transform: uppercase; border-radius: 3px; cursor: pointer;">\n <div class="button-text"></div>\n</div>';

let buttons = {};

Expand Down Expand Up @@ -1112,12 +1117,10 @@
// Transfer video description to original response
const originalVideoSecondaryInfoRenderer = originalNextResponse.contents.twoColumnWatchNextResults.results.results.contents.find(
(x) => x.videoSecondaryInfoRenderer,
)
.videoSecondaryInfoRenderer;
).videoSecondaryInfoRenderer;
const unlockedVideoSecondaryInfoRenderer = unlockedNextResponse.contents.twoColumnWatchNextResults.results.results.contents.find(
(x) => x.videoSecondaryInfoRenderer,
)
.videoSecondaryInfoRenderer;
).videoSecondaryInfoRenderer;

// TODO: Throw if description not found?
if (unlockedVideoSecondaryInfoRenderer.description) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.4",
"version": "2.5.5",
"repository": {
"type": "git",
"url": "git+https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass.git"
Expand All @@ -17,7 +17,9 @@
"files": [
"dist/Simple-YouTube-Age-Restriction-Bypass.user.js"
],
"workspaces": ["account-proxy"],
"workspaces": [
"account-proxy"
],
"scripts": {
"build": "node --no-warnings scripts/build.js",
"format": "dprint fmt src/**/*.js",
Expand Down

0 comments on commit 7727068

Please sign in to comment.