YT Age Restriction Bypass Tampermonkey Script?

Discussion in 'other software & services' started by Daveski17, Oct 28, 2021.

  1. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    Screenshot 2021-10-28 at 16.42.05.png

    Does anyone use Tampermonkey or similar to get around the ridiculous You Tube age restriction? Google know my age and I'm not uploading bank details or anything else. So I've installed Tampermonkey on Firefox.

    credit.jpg

    Has anyone got a script for this?
     
  2. Floyd 57

    Floyd 57 Registered Member

    Joined:
    Mar 17, 2017
    Posts:
    1,296
    Location:
    Europe
  3. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
  4. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    NSFW doesn't work. :(
     
  5. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    None of them do.
     
  6. xxJackxx

    xxJackxx Registered Member

    Joined:
    Oct 23, 2008
    Posts:
    9,145
    Location:
    USA
    Wow. I haven't seen that one yet.
     
  7. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    It might be just in Europe. So it's odd that I'm seeing it as my country has left Europe, pulled up anchor and is slowly heading for the antipodes, as apparently we have friends there.
     
  8. Floyd 57

    Floyd 57 Registered Member

    Joined:
    Mar 17, 2017
    Posts:
    1,296
    Location:
    Europe
    Wow I didn't know Lloegyr is back on the map
     
  9. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    985
    Location:
    The Netherlands
    Just download with yt-dlp.
    This is an active fork of youtube-dl, which is now sort of abandoned...
     
  10. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    It's Welsh for 'England'. ;)
     
  11. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    script.jpg

    Tampermonkey fixed it!

    ~ Copyrighted Image Removed ~
     
    Last edited by a moderator: Oct 28, 2021
  12. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    985
    Location:
    The Netherlands
    I usually open the video links through MPV media player, with the help of the "Open With" extension.
    (MPV uses yt-dlp to grab and combine the audio and video stream and can use your GPU)

    Straight via the browsers right-click menu.

    For Firefox:
    https://addons.mozilla.org/en-US/firefox/addon/open-with/

    For Chrome/Chromium:
    https://chrome.google.com/webstore/detail/open-with/cogjlncmljjnjpbgppagklanlcbchlno

    In the options, click on "Add browser".
    Then enter Name and Command.

    Screenshot settings
    Screenshot browser menu

    MPV's settings are read from it's config file. :)
     
    Last edited: Oct 29, 2021
  13. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    OK thanks. I think I used to be able to do something similar with SMPlayer on Ubuntu. :thumb:
     
  14. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    I can remember when YT was good and fun to use. I've finally managed to install Tampermonkey on every computer I own and almost every browser. I haven't bothered yet with Vivaldi as it tries to set Mac's on fire when running video and it isn't much better on Ubuntu. All this to watch YouTube videos that are 'age' restricted.

    Quis custodiet ipsos custodes? :rolleyes:
     
  15. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    985
    Location:
    The Netherlands
    In my previous comment I changed:
    into:
    Of course, when you have yt-dlp entries in the "Open With" menu, then yt-dlp's config file will be used.
     
  16. Daveski17

    Daveski17 Registered Member

    Joined:
    Nov 11, 2008
    Posts:
    10,239
    Location:
    Lloegyr
    OK cheers. :thumb:
     
  17. Floyd 57

    Floyd 57 Registered Member

    Joined:
    Mar 17, 2017
    Posts:
    1,296
    Location:
    Europe
    Youtube plays videos in VP9, which my vega cannot process, so to watch youtube videos my cpu is used, as such i cannot really watch 8K videos without dropping frames, plus i would like to use my much more efficienty gpu than having my cpu at 100% (my gtx 1060 3gb can easily process VP9 despite being much weaker than my vega). If i use mpv media player, will it play the video in an encoding my vega can process? Without losing bitrate and audio or video quality? For example h.265/hevc would be a good encoding but as long as the above conditions are met i don't have pretentions
     
  18. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    985
    Location:
    The Netherlands
    Don't know much about GPU's, but mine is:
    Code:
    Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
    H265, AV1 and VP9 are not hardware accelerated here.
    Heck, I couldn't even play AV1 (format 399 on YouTube) with MPV. Had to compile it again today with that option and then it had numerous framedrops...

    So I have to use the following option in MPV's config:
    Code:
    ytdl-format="bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
    (my screen is 1920x1080, so a larger resolution makes no sense)
    Only then the GPU is used.
     
  19. Floyd 57

    Floyd 57 Registered Member

    Joined:
    Mar 17, 2017
    Posts:
    1,296
    Location:
    Europe
    a larger resolution does make sense, yes an 8K cannot be fully realized on a 1080p monitor but it still looks much better than 1080p on a 1080p monitor. your command only uses up to 1080p. also as far as i know youtube only provides videos above 1080p in vp9 format, so can mpv convert them to another format before playing? i think it's a rather basic functionality, it gets the 8K in vp9 and convert without bitrate loss in another format like h.265 or h.264 that can be used by my card?
     
  20. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    985
    Location:
    The Netherlands
    Don't think so.
    You'll have to re-encode with ffmpeg:
    (https://trac.ffmpeg.org/wiki/Encode/H.264)
    Code:
    ffmpeg -i in.mkv -c:v libx264 -crf 18 -c:a copy out.mkv
    Note, that it will take a long time...
     
  21. Floyd 57

    Floyd 57 Registered Member

    Joined:
    Mar 17, 2017
    Posts:
    1,296
    Location:
    Europe
    Ah that's so lame. I guess i will look at it. But the fact u cannot watch an 8K video in 2021 without ur cpu going bonkers is laughable. Why does Youtube not provide alternative codecs anyway, everything above 1080p is VP9
     
  22. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    985
    Location:
    The Netherlands
    I think they choose VP9 because of storage space (same quality; smaller file size).
    AV1 is even smaller.
    Wikipedia:
     
  23. Floyd 57

    Floyd 57 Registered Member

    Joined:
    Mar 17, 2017
    Posts:
    1,296
    Location:
    Europe
    Either you are missing something, or you should be Head Codec Engineer at youtube xD But yeah i saw smth about using the igpu
    upload_2021-10-30_17-56-53.png
    but then i have to set Chromium to use my igpu which is a bummer. Would be a nice if there was a setting to only use iGpu on youtube. Which I haven't looked for actually cuz i've got so many stuff to do so this is a bit on the backfoot but something tells me there is no such option. I mean there is no option to white/blacklist sites for Dark Mode so what's the chance there will be an option to only use iGpu on particular sites... Unless of course you use an extension and then each time you visit youtube the extension will intercept the request to youtube, close the tab, use file access to write to the registry responsible for the setting on the pic above (because it needs a restart I think to take effect) and only then launch a NEW chromium window that will use the igpu on the same youtube link. This way technically you can still use ur fast gpu for everything else but just the iGpu on youtube. Of course an extension that has FILE ACCESS PERMISSION will likely need to be extensively reviewed or better yet, write your own (that's what i might do). And the reason u don't see my iGPU on the pic above is because i have it disabled. But it should say like Intel HD Graphics 4600 on the power saving mode
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.