remove the ?origin= from the youtube embed?

Started by lifning, Feb 28, 2025, 12:24 AM

Previous topic - Next topic

lifning

The iframe URL for the [youtube] tag ends up putting this in the query:
?origin=https%3A%2F%2Ff9.hell-labs.net
(Come to think of it, it might be nice to have a plain [video] tag, so we have the option to rehost stuff somewhere less dystopian)
You cannot view this attachment.
Please consider the environment before printing this post.

snow

Huh. Looks like origin parameter is used for the JS iframe API, which we don't use. Not sure why it was added to SMF core like that. Easy enough to mod out, at least.

Quote from: lifning on Feb 28, 2025, 12:24 AM(Come to think of it, it might be nice to have a plain [video] tag, so we have the option to rehost stuff somewhere less dystopian)

Yep, I'm planning on it! I'll be adding both video and audio tags (the latter requested OOB by @semaphore).