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.
Neue Funktionen
Version 1.1
- Add Lemon Updater Support
Was er macht
20 Aktionen-
Dictionary
-
If
-
Choose from Menu
-
Choose from MenuCheck For Updates
-
Get My Shortcuts
-
Match Text
-
If
-
Run ShortcutLemon Updater
-
If
-
Choose from MenuVisit shortcuts.ink
-
Open URLs
-
If
-
Get Item from List
-
Match Text
-
Get Group from Matched Text
-
If
-
Text
-
Open URLs
-
If
-
Show Alert
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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")
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von shorctutsink
Das gefällt dir vielleicht auch
Werbung