ShareShortcuts

Redirect to Invidious

Redirect YouTube video to Invidious

dddbug
„Redirect to Invidious“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit dddbug die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
30K
Gesichert
0
Aktionen
11
Kategorie
Photos and videos
Version
1.0
Sprache
EN

Redirect YouTube video to Invidious. Watch at there ad-free.

Indivious is an open source alternative frontend to YouTube.

It provides lightweight webpage, native video player, free Picture in Picture mode support, subtitles and comments support. And no ads.

How to use this shortcut

From a YouTube video webpage

1. Tap Share button in Safari, then choose this shortcut "Redirect to Invidious".

2. A notification let you confirm the redirection.

3. It will bring a new tab, presents a list of Invidious instances. Choose one as you like.

4. Enjoy your video.

From a YouTube hyperlink / URL

1. Tap and hold (or 3D Touch ) the URL, until it shows the action menu.

2. Tap Share menu item to bring up the share sheet. Then choose this shortcut "Redirect to Invidious".

3. A notification let you confirm the redirection.

4. It will bring a new tab, presents a list of Invidious instances. Choose one as you like.

5. Enjoy your video.

This should applies to all YouTube video links, including YouTube Recommendation and Following list.

However, it may not work with some shared URLs on social platform, especially those been shorten by short URL services.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 5. Sep 2023

First release

Was er macht

11 Aktionen
  1. Get URLs from Input
  2. Get Component of URL
  3. If
  4. Get Component of URL
  5. Comment
    YouTube URL example: https://www.youtube.com/watch?v=fXW-QjBsruE Invidious URL example: https://redirect.invidious.io/watch?v=fXW-QjBsruE
  6. Text
  7. Combine Text
  8. Show Alert
    Redirecting to ...
  9. Open URLs
  10. If
  11. Show Notification
    Please launch the shortcut from a YouTube video.

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

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

const WebpageFullURL = getURLs(ShortcutInput)
const URLHostName = getURLDetail(WebpageFullURL, "Host")

if URLHostName endsWith "youtube.com" {
	const YouTubeURLQuery = getURLDetail(WebpageFullURL, "Query")
	/*
	YouTube URL example:
	https://www.youtube.com/watch?v=fXW-QjBsruE
	
	Invidious URL example:
	https://redirect.invidious.io/watch?v=fXW-QjBsruE
	*/
	const InvidiousPrefix = "https://redirect.invidious.io/watch?"
	const FinalURL = joinText([map[Value:map[attachmentsByRange:map[{0, 1}:map[OutputName:InvidiousPrefix  OutputUUID:24549DEE-EE7C-4F84-AE8A-72C96A628D14 Type:ActionOutput]] string:] WFSerializationType:WFTextTokenString] map[Value:map[attachmentsByRange:map[{0, 1}:map[OutputName:YouTubeURLQuery OutputUUID:365DD2B1-5D56-467D-92E7-1548FE8D2A2A Type:ActionOutput]] string:] WFSerializationType:WFTextTokenString]], "Custom")
	alert(FinalURL, "Redirecting to ...")
	openURL(FinalURL)
} else {
	showNotification("Please launch the shortcut from a YouTube video.", "Invaild URL.", URLHostName)
}
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

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung