ShareShortcuts
Fork “YouTube PIP”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so shorctutsink gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
58K
Saved
2
Actions
20
Category
Social Network
Version
1.1
Language
EN

A simple shortcut for playing any youtube video in PIP mode without extra applications

How to use:

- Share a video from YouTube App to the shortcut

- A new page will be loaded in safari app

- Play the video in safari app

- Swipe Up or Press home button

- thats it 😄

How To Update:

This shortcut uses Lemon Updater shortcut for updates

Note: this shortcut use a simple website to fetch youtube video and enable PIP mode.

What's New

Version 1.1

- Add Lemon Updater Support

Version History
1.1 Sep 15, 2022

- Add Lemon Updater Support

1.0 Sep 15, 2022

First release

What it does

20 actions
  1. Dictionary
  2. If
  3. Choose from Menu
  4. Choose from Menu
    Check For Updates
  5. Get My Shortcuts
  6. Match Text
  7. If
  8. Run Shortcut
    Lemon Updater
  9. If
  10. Choose from Menu
    Visit shortcuts.ink
  11. Open URLs
  12. If
  13. Get Item from List
  14. Match Text
  15. Get Group from Matched Text
  16. If
  17. Text
  18. Open URLs
  19. If
  20. Show Alert

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/shortcuts'
#define color red
#define glyph videoIcon

const Dictionary = {
	"Author": "shortcuts.ink",
	"Name": "YouTube PIP",
	"RH ID": "12977",
	"Version": "1.0",
	"Website": "https://shortcuts.ink"
}

if !ShortcutInput {
	menu nil {
	item "Check For Updates":
		getShortcuts()
		const Matches = containsText(, "Lemon Updater", false)
		if Matches {
			run("Lemon Updater", Dictionary)
		} else {
		}
	item "Visit shortcuts.ink":
		openURL("https://shorcuts.ink")
	}
} else {
	getFirstItem(ShortcutInput)
	const Matches1 = containsText(, "(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})")
	const Text = getMatchGroup(Matches1, 0)
	if Text {
		const Text1 = "https://shortcuts-ink.surge.sh/youtube.html?id={Text}"
		openURL(Text1)
	} else {
		confirm("Please, share valid YouTube video link")
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by shorctutsink

See All

You Might Also Like

See All
Advertisement