DND_Things/James' Things/foundry patches/loginmusic.sh

18 lines
813 B
Bash

# Add Music to the login screen
# Videoid of the Youtube video you want to play
videoid="ZjQZxqTipHM"
# The actual embed code that embeds the video.
# This is only in case you want to change some parameters.
# Don't forget to add the $videoid near the embed!
# (In case you still want to use that, but I highly doubt that)
iframe="<iframe width='560' height='315' src='https://www.youtube-nocookie.com/embed/$videoid?autoplay=1&amp;controls=0&amp;loop=1' title='Background Music' frameborder='0' allow='autoplay;'></iframe>"
# The final string.
Video="<div class='app' style="margin-left: 25px;">$iframe</div>"
# Inject that bad boy into the foundry thing. Might break in future updates (May only need the line changed)
sed -i -e "69i $Video" /home/foundry/resources/app/templates/setup/join-game.html
# Nice