Skip to content

zerodytrash/Simple-YouTube-Age-Restriction-Bypass

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Mainly worked on modernizing while also optimizing performance.

Changes include:
- Transitioned from commonjs to esmodule
- Updated `dotenv` dependency
- Replaced dependencies
  - `axios` -> `undici/fetch`
  - `https-proxy-agent` -> `undici/ProxyAgent`
  - `express` -> `fastify` + `@fastify/cors`
  - `express-rate-limit` -> `@fastify/rate-limit`
- Added start script in `package.json`
- Cleaned up `.gitignore`
- Updated `README.md`
- Small refactor
- Added folder as workspace
  As result some things have been moved to the project root such as `node_modules` and `package-lock.json`
- Add `proxy:start` command to root `package.json`
- Removed unused `package.json` properties.

Benchmarks show that [fastify](https://github.com/fastify/fastify) has much higher requests per second and throughput, while also being really simple to use and is being updated regularly. (https://github.com/fastify/benchmarks#benchmarks)

[undici](https://github.com/nodejs/undici) is a project made by the NodeJS team. It features an HTTP client written from scratch and performs much better than `node:http`. It also implements the `fetch` api and has a `Agent`/`ProxyAgent` by default among many other things.
41dc504

Git stats

Files

Permalink
Failed to load latest commit information.

Simple YouTube Age Restriction Bypass

Getting started | Privacy | Development | Contributors

Simple YouTube Age Restriction Bypass

A very simple to use browser extension to bypass YouTube's age verification 😎


GitHub release downloads license

How it works

This extension uses some API tricks to access age-restricted videos from YouTube anonymously. As a fallback (in case that the API bypass methods does not work) an open source Account Proxy Server is used. This allows you to watch all types of age-restricted videos on YouTube and YouTube Music without age verification and without the need to be signed in.

All videos will be unlocked automatically!

Getting started

Installation

You have two options depending on the browser you use. You can install the script as a Userscript in all popular browsers or as a Browser Extension in some supported browsers listed below.

Browser Extension

The Age Restriction Bypass for Youtube™ extension is currently available for Firefox and Edge.

Mozilla Add-ons Edge Add-ons

If you use another browser (e.g. Google Chrome), install the Userscript below.

Userscript

  1. Install a Userscript Manager of your choice. We recommend Tampermonkey or Violentmonkey.

  2. Install Simple YouTube Age Restriction Bypass by clicking this link.

Alternative mirrors:

GreasyFork OpenUserJS

Usage

No further actions are necessary. All age restricted videos are automatically unlocked. Make sure you reload YouTube after installation.

Privacy

In order to unlock some video information, requests are handled through a proxy server. On the server side, the request will be authenticated with the credentials of an age-verified account at YouTube. The source code of the proxy server can be found here.

No credentials are sent from your YouTube account! The only info that the proxy server receives from you is the Video-ID and some non-user related information like the version of the YouTube website. The used proxy server at youtube-proxy.zerody.one does not log IP-Adresses or Video-IDs. If you have set a different proxy server instance, then the operator's log policies apply.

To have an overview of the number of requests and possible problems, anonymous usage statistics are collected. These statistics are also not user-related and can be found here.

For some videos it is necessary to route the video data files (hosted at googlevideo.com) through a proxy server as well. The third-party service 4everproxy.com is used for this. You can read the privacy policy here.

Compatibility

Browser support

The following browsers are supported:

Chrome
Chrome
Edge
Edge
Firefox
Firefox
Safari
Safari
Opera
Opera
Brave
Brave
Extension
Userscript Full support

And many more!

Android

Simple YouTube Age Restriction Bypass works on Android with the browser version of YouTube m.youtube.com in combination with the Userscript.

Only a few browsers such as Firefox and Kiwi Browser currently support extensions. Tampermonkey can be installed there.

Bromite supports userscripts natively. The script can be installed via Settings > User Scripts.

iOS/iPadOS

Simple YouTube Age Restriction Bypass also works on iOS/iPadOS Safari with the browser version of YouTube m.youtube.com in combination with the Userscript.

You need to install the free extension Userscripts for Safari from the AppStore to install the Userscript.

Development

Prerequisites

Building

We use Rollup with Babel to transpile into a single userscript file and maintain support for older browsers.

1. Clone the repository

git clone https://github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass.git

2. Install Dependencies

Run this command at the root folder to install the required dependencies:

npm install

3. Run Build Script

Build the userscript and extension:

npm run build

The userscript Simple-YouTube-Age-Restriction-Bypass.user.js and extension should now be located in the dist folder.

The extension is compiled to both Manifest V2 and V3.

Contributors

Want to contribute to this project? Feel free to open an issue or pull request.