Skip to content

Commit

Permalink
Lily/Video: add more warnings about YouTube (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin authored Aug 30, 2023
1 parent b1edc99 commit 16f75eb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion extensions/Lily/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@
color1: "#557882",
name: "Video",
blocks: [
{
blockType: Scratch.BlockType.LABEL,
text: "Only direct downloads will work",
},
{
blockType: Scratch.BlockType.LABEL,
text: "Use Iframe extension for YouTube",
},
{
opcode: "loadVideoURL",
blockType: Scratch.BlockType.COMMAND,
Expand Down Expand Up @@ -329,7 +337,8 @@

if (
url.startsWith("https://www.youtube.com/") ||
url.startsWith("https://youtube.com/")
url.startsWith("https://youtube.com/") ||
url.startsWith("https://youtu.be/")
) {
alert(
[
Expand Down

0 comments on commit 16f75eb

Please sign in to comment.