zerodytrash / Simple-YouTube-Age-Restriction-Bypass

A simple browser extension to bypass YouTube's age verification, disable content warnings and watch age restricted videos without having to sign in!
MIT License
2.2k stars 96 forks source link

BetterDiscord Plugin? #134

Open jacobmix opened 2 years ago

jacobmix commented 2 years ago

Being able to use this with Discord would be nice. Hate having to keep opening links in my browser. But a BetterDiscord plugin would get around that. Tho i'm unsure if there's any restrictions that could get in the way. Any plans for a BetterDiscord Plugin? BetterDiscord: https://betterdiscord.app/ Some plugins: https://betterdiscord.app/plugins

zerodytrash commented 2 years ago

From what I read in the documentation, plugins are executed in the context of the Discord website. It is probably not possible to inject JavaScript into cross origin frames from there. If anyone knows a way to get around this restriction, let me know.

image

soshimee commented 2 years ago

Since Discord is Electron, maybe BD has a way to disable that?

zerodytrash commented 2 years ago

Surely there will be ways to disable the same-origin policy in the underlying chromium browser. But that would cause a huge security issue. In this case you would have to give discord only access to youtube iframes. I don't know if this possibility exists in electron and if BD has access to this configuration.

Aholicknight commented 2 years ago

DiscordPTB_4195912367

This is happening with other plugins as well (CreationDate)

jacobmix commented 2 years ago

DiscordPTB_4195912367

This is happening with other plugins as well (CreationDate)

Discord just updated, and changed a lot of things behind the hood. So a lot of BDplugins are broken.