Git Product home page Git Product logo

Comments (7)

drunkwinter avatar drunkwinter commented on June 12, 2024

Tried everything, but cannot seem to repro. Do you have the full version of the logs or is this everything?

from simple-youtube-age-restriction-bypass.

interrupt-routine avatar interrupt-routine commented on June 12, 2024

These are all the logs emitted by the userscript, yes. Do you also want the userscript errors and/or logs from the entire page ?


I tried disabling every other extension I have save for Tampermonkey, but the problem still persists.

from simple-youtube-age-restriction-bypass.

drunkwinter avatar drunkwinter commented on June 12, 2024

I first want to rule out an issue with the userscript manager. Can you try it with Violentmonkey? (don't forget to disable Tampermonkey first)

If it works, then try disabling and reenabling Tampermonkey (there was a bug related to this sometime ago). If it still doesn't work then a full page log might be helpful. You could also try testing this on edge/chrome.

from simple-youtube-age-restriction-bypass.

interrupt-routine avatar interrupt-routine commented on June 12, 2024

I can see descriptions again... no idea what changed. Sorry for the trouble and thanks for your help

from simple-youtube-age-restriction-bypass.

interrupt-routine avatar interrupt-routine commented on June 12, 2024

And now gone again...
Running the script with Violentmonkey on Firefox correctly unlocks the videos and their descriptions. Same when running it with Tampermonkey on Edge.


In the meantime, I just cobbled this quick-fix together to restore the description (it lacks the youtube pretty formatting that would require creating some YouTube custom HTML elements):

document.getElementById('snippet').innerHTML = ytInitialPlayerResponse.videoDetails.shortDescription;

It seems that shortDescription (which confusingly seems to be the entire description) is always sent even if the video is age-restricted and the description is not displayed.

from simple-youtube-age-restriction-bypass.

drunkwinter avatar drunkwinter commented on June 12, 2024

I have no idea what the cause might be. Almost seems like a race condition.

About the description, I thought the description worked correctly? The shortDescription was actually a short description in the past, but it indeed seems to include everything now with the videos I've tested.

from simple-youtube-age-restriction-bypass.

interrupt-routine avatar interrupt-routine commented on June 12, 2024

Sorry if I was not clear - I meant that the problem (no video description) reappeared with the combination Firefox + TamperMonkey; but is apparently neither due to Firefox nor TamperMonkey by themselves, since Firefox + ViolentMonkey works and Edge + TamperMonkey also works.

Hence why I have to fetch the shortDescription as a quick-fix (I want to keep using TamperMonkey and Firefox).

from simple-youtube-age-restriction-bypass.

Related Issues (20)

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.