Simple YouTube Age Restriction Bypass

Regardez des vidéos YouTube avec des restrictions d'âge sans vous inscrire et sans confirmer votre âge 😎

< Commentaires sur Simple YouTube Age Restriction Bypass

Avis: Mauvais - le script ne fonctionne pas

§
Posté le: 08/08/2024
Édité le: 08/08/2024

Use this code to bypass "TrustedHTML"

// TrustedHTML issue
function createElement(tagName, options) {
  const node = document.createElement(tagName);

  if (options) {
      // Assign properties to the node
      Object.keys(options).forEach(key => {
          if (key === 'innerHTML') {
              // If innerHTML is provided, create a text node instead
              const textNode = document.createTextNode(options[key]);
              node.appendChild(textNode);
          } else {
              node[key] = options[key];
          }
      });
  }

  return node;
}

from

function createElement(tagName, options) {
    const node = document.createElement(tagName);
    options && Object.assign(node, options);
    return node;
}
§
Posté le: 09/08/2024

Thanks man!

§
Posté le: 09/08/2024

You're a chad

§
Posté le: 10/08/2024

Great !
Thanks

And of course, thanks to zerodytrash for this script.

§
Posté le: 10/08/2024

where exactly do I have to insert this, because I have no idea about programming, and just want to watch videos on YouTube undisturbed. Yesterday this extension still worked

§
Posté le: 11/08/2024

I suggest that you duplicate the userscript before editing it. So that the original script can still update automatically (depending on the settings of your userscript manager).

Anyway, duplicating is not necessary.

Here is how to modify:

Open the userscript in your scripts manager.
In the "Editor" tab (named like that in Tampermonkey), search for "function createElement". The code will scroll to the source of the function. You will see the code that is displayed above under "from".
You replace that code (5 lines, including the closing } ) with the new code that is display here above the old code. (everything between // TrustedHTML issue and } )

Once you have done that, save the script in the scripts manager. There is a command in a menu of the manager, or a button. CTRL+S should also work (at least in tampermonkey).

§
Posté le: 11/08/2024

Thank you very much it works X3

I think I did it right, though I might be stupid. Anyway it's not working for me. Is this fix still working for others?

I think I did it right, though I might be stupid. Anyway it's not working for me. Is this fix still working for others?




The developer already fixed the problem, check for update!!!

Poster une réponse

Connectez-vous pour poster une réponse.