Giter Site home page Giter Site logo

zerodytrash / simple-youtube-age-restriction-bypass Goto Github PK

View Code? Open in Web Editor NEW
2.0K 2.0K 91.0 1.17 MB

A simple browser extension to bypass YouTube's age verification, disable content warnings and watch age restricted videos without having to sign in!

License: MIT License

JavaScript 82.61% HTML 15.44% CSS 1.95%
bypass hacktoberfest tampermonkey unblocker userscript youtube youtube-player

simple-youtube-age-restriction-bypass's People

Contributors

crashedlife avatar d3sox avatar drunkwinter avatar friendlyanon avatar jakob-kruse avatar justoff avatar max1mde avatar mineplayerspe avatar niborh68 avatar vanillajonathan avatar zerodytrash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-youtube-age-restriction-bypass's Issues

uBlock Origin conflict on ytInitialPlayerResponse

Hi, there seems to be a conflict with uBlock Origin when trying to re-define the ytInitialPlayerResponse property. Here's what I get with both the script and the extension enabled :
image

The script works fine without uBlock Origin though, so that's my "bypass" in the meantime.

Thank you

[request] use of proxy in external application

Hi @zerodytrash,

I maintain an invidious kodi plugin and was wondering if I could use your proxy to help users bypass age gating of videos when playing them directly from yt.

That would mean increased traffic on your server (I don't think it would be that noticeable, there aren't that many users of the plugin), that's why I request your authorization before going forth with setting it up.

thanks for your help

Breaks uBlock Origin?

Not sure what causes this but I always get this before the video starts when the script is enabled, even when the video is not age restricted:
image

Using Firefox 87.0 with Tampermonkey 4.12.6132

Script unblocks ads

With the script enabled, ads usually blocked are unblocked

Configuration:

  • Windows 10
  • Firefox 89
  • uBlock origin

Bypass error

Doesn't really work for me. This script couldn't bypass this video

https://www.youtube.com/watch?v=yBdBS32Fr68

Errors are printed in the console

userscript.html?name=Simple%20YouTube%20Age%20Restriction%20Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:82 Simple-YouTube-Age-Restriction-Bypass-Error: DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www.youtube.com/get_video_info?video_id=yBdBS32Fr68&html5=1&eurl&ps=desktop-polymer&el=adunit&cbr=Chrome&cplatform=DESKTOP&break_type=1&autoplay=1&content_v&authuser=0'.
    at XMLHttpRequest.send (<anonymous>:53:10)
    at getUnlockedPlayerResponse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:119:21)
    at unlockPlayerResponse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:95:37)
    at inspectJsonData (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:78:30)
    at set (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:44:37)
    at https://www.youtube.com/watch?v=yBdBS32Fr68:20:12696
inspectJsonData @ userscript.html?name=Simple%20YouTube%20Age%20Restriction%20Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:82
VM14:53 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
XMLHttpRequest.send @ VM14:53
userscript.html?name=Simple%20YouTube%20Age%20Restriction%20Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:82 Simple-YouTube-Age-Restriction-Bypass-Error: DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www.youtube.com/get_video_info?video_id=yBdBS32Fr68&html5=1&eurl&ps=desktop-polymer&el=adunit&cbr=Chrome&cplatform=DESKTOP&break_type=1&autoplay=1&content_v&authuser=0'.
    at XMLHttpRequest.send (<anonymous>:53:10)
    at getUnlockedPlayerResponse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:119:21)
    at unlockPlayerResponse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:95:37)
    at inspectJsonData (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:78:30)
    at set (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:44:37)
    at https://www.youtube.com/watch?v=yBdBS32Fr68:20:34353
inspectJsonData @ userscript.html?name=Simple%20YouTube%20Age%20Restriction%20Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:82
VM14:53 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
XMLHttpRequest.send @ VM14:53
userscript.html?name=Simple%20YouTube%20Age%20Restriction%20Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:82 Simple-YouTube-Age-Restriction-Bypass-Error: DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://www.youtube.com/get_video_info?video_id=yBdBS32Fr68&html5=1&eurl&ps=desktop-polymer&el=adunit&cbr=Chrome&cplatform=DESKTOP&break_type=1&autoplay=1&content_v&authuser=0'.
    at XMLHttpRequest.send (<anonymous>:53:10)
    at getUnlockedPlayerResponse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:119:21)
    at unlockPlayerResponse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:95:37)
    at inspectJsonData (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:78:30)
    at JSON.window.JSON.parse (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Simple%2520YouTube%2520Age%2520Restriction%2520Bypass.user.js&id=7031570e-180c-4a85-8bb5-3232504087fc:56:16)
    at oV.bp (https://www.youtube.com/s/player/38c5f870/player_ias.vflset/en_US/base.js:8215:71)
    at XMLHttpRequest.<anonymous> (https://www.youtube.com/s/player/38c5f870/player_ias.vflset/en_US/base.js:8213:25)

The Bypass used to work, today it isnt working?

yesterday it worked fine, but today it doesn't work. even refreshing the page doesn't work. now it just displays the "verify your age" page. let me know if you need more info

btw im using the brave browser but i also tested it on chrome and it also doesn't work

script no longer works?

just minutes ago i watched an age restricted video with the script enabled with Tampermonkey in Firefox. i opened another video in a new tab and tried watching it, now i get the same old verify age prompt. i then tried it on vivaldi which is my main browser, which has been working with no issues for a month or so, and neither video works there either.

Doesn't work anymore for me

I'm on OperaGX but I tried on Firefox and Chrome with no extensions installed other than tampermonkey and it doesn't skip age restriction anymore and refreshing the page doesn't help. I don't know if it's a bug or YouTube changed something but it stopped working for me.

Stopped working for me again (bug)

I tried to watch HowToBasic - How To make a Rainbow Cake and it does not work, It asked me to verify, so please fix again, thank you.

(Close this issue if it is a duplicate / the issue is fixed)

Edit: I checked console and there was a error saying:

Cannot read property "playabilityStatus" of null or something along that

Feature Request: Invidious

Hi,
I've just discovered your script and it is amazing. Thanks for all your effort!
Do you think it would be possible to make the script work with videos on invidious, too? That would be awesome.
Thanks a lot.

Quality of code concerns

It's weird how you use the null safety calls (aka Optional chaining), but you use var everywhere as well...
Like, unless you want to redefine that variable and it is a global one, var is useless.

99% of the variables can be converted to constants.

Not working

Hello, ive been using this for a while and it worked great. Now i was trying to open https://www.youtube.com/watch?v=JJ5290-0lw0 and it didnt work, have not yet found any other videos wher it doesnt work, but i havent really search for them.. i have ublock origin (tried disabling it, didnt work), lastpass as my other extensions.

Black screen for a few seconds when using [multiple] adblockers

Hi,

ever since installing your script I've been getting around 5+s of blackscreen with a advertisement title on top. I found that it most likely occurs because of my adblock extensions. Emphasis on it being multiple ones.

Currently these ones are installed:

From what I can gather the main culprit seems to be the last one in that list.

Still not working (solved)

Hello,

I installed the script in hope of getting rid of the annoying "verify your age" when I should be able to watch "restricted content" like history documentaries. But sadly, it doesn't seem to work for me for I still can't watch videos that are age restricted. I also tried to take an age verification video,here the video, but no success so far.
I downloaded TamperMonkey correctly as my Chrome extension and the scrip is successfully installed. But nothing. Is it only my problem or Youtube found a way to block this? If it's the second case, will the script be updated?

Thanks in advance for everything done so far.

Account Proxy Server

wondering if you could help i am trying to run my own account proxy server, but having some troubles.

could you please give brief overview of how you think this should be working, do we run a script to install the APServer or something else

thanks in advanced
CZ

Alternative: ProxTube (and other YouTube auto-proxy browser extensions)

ProxTube works wonderfully nicely, and does even more, by bypassing regional block and other types of restrictions.

https://addons.mozilla.org/firefox/addon/proxtube/

When you load a page that's restricted in some form (e.g. age restricted) it automatically detects that, and loads a proxied version seamlessly, inside YouTube itself. No third party pages or other inconveniences. The end result is very similar to this script (when it used to work).

If you do not use Firefox, I'm confident there are similar extensions for your browser of choice (although, if you don't trust giving YouTube your ID, while using Chrome... kinda counterintuitive, is it not?).

Doesnt work when logged in

When im logged into my youtube account it wont play age restricted videos.
it will play them in a private window on the other hand

any way to fix this?

Update link removed

Unfortunately you removed the update URL. Please add back in

// @updateURL       https://raw.githubusercontent.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass/main/dist/Simple-YouTube-Age-Restriction-Bypass.user.js

[Documentation] Would it be possible to add a short explanation how it works?

Hey there,

Would it be possible to add a short explanation how it works? It does not have to be
long, just mostly a summary, perhaps one or two points to the code.

Background: I am having a hard time with google lately age-gating everything
including the "you are from europe so we use the data privacy laws against
you and censor you", so I'd love to get around this stream of censorship
restrictions. But I don't fully understand how this all works; even youtube-dl
throws similar errors, so anything that helps me understand it, would be
super-helpful. And perhaps others may also benefit from a short explanation
if you ever have the time for this. Thank you for reading, please feel free
to close this issue it at any moment in time!

Thank You

Just wanted to say thank you for not giving up on this script

Invalid syntax for older browsers

hi, the syntax "a?.b" is invalid on slightly older browsers (example: "playerResponse?.playabilityStatus?.status !== "OK"")
could you explain what does it do so one could replace it with a longer functional one to get the script to work?

Occasionally it doesn't work

Rarely, it happens that it won't skip age verification; reloading the page however solves it, so it's not a big deal. Not sure why.

I'd also like to thank you for your work. Handing out sensitive data to Google like a copy of ID/credit card for "age verification" is ridicolous and should be illegal.

Does not seem to work on embedded videos?

<iframe width="2143" height="1214" src="https://www.youtube.com/embed/rAu1h2NE9Uk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Open this for example in a page, for me on Chrome 94 it is not sucessfull in bypassing the age-restriction for iframes

Prevent it from removing videos on the side?

Videos on the side are removed on restricted videos can they be added back? This script blocks the videos without removing the side but it has a delay, yours doesn't have a delay, if you could add them back without the delay it would be seamless.

Not showing the description

As mencioned in the title, I'm not able to see what the description says, it is just a blank space
If you could fix it, thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.