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.
Nyheder
Version 1.1
- Add Lemon Updater Support
Hvad den gør
20 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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")
}
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra shorctutsink
Du vil måske også kunne lide
Annonce