DND_Things/James Things/foundry patches/loginmusic.sh

18 lines
813 B
Bash
Raw Normal View History

2022-06-01 17:55:27 +00:00
# Add Music to the login screen
2022-06-01 19:20:45 +00:00
# Videoid of the Youtube video you want to play
videoid="ZjQZxqTipHM"
2022-06-01 19:20:45 +00:00
# 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.
2022-06-01 21:04:48 +00:00
Video="<div class='app' style='margin-left: 25px;'>$iframe</div>"
2022-06-01 19:20:45 +00:00
# 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
2022-06-01 18:55:19 +00:00
# Nice