Skip to content

Instantly share code, notes, and snippets.

@Hashbrown777
Last active November 9, 2023 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hashbrown777/973f4dfaeae4b30760a941bb05fb6eed to your computer and use it in GitHub Desktop.
Save Hashbrown777/973f4dfaeae4b30760a941bb05fb6eed to your computer and use it in GitHub Desktop.
play discord videos instead of downloading them

go to discord.com/app, you dont even have to log in
put a # and paste in your discord video into the url and hit enter
eg https://discord.com/channels/@me#https://cdn.discordapp.com/attachments/155867105789476864/1172040204224299008/Oxw91K9.mp4?ex=655ede80&is=654c6980&hm=22097e072e6c0f31a60ededef1d5d09505f88b65a16d875c8b9b3bfca5692fbc&
now replace the address bar by typing javascript: (do not hit enter)
then after the colon paste the following
bob = open().document;bob.write(`<html><body><video style="max-width:100%;max-height:100%" controls autoplay src="${location.hash.substr(1)}"></video></html>`);bob.close();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment