PeerTubeify è un'estensione per il browser che aiuta a scoprire quali video di YouTube sono disponibili anche su PeerTube, visualizzando un link e una miniatura sotto il titolo del video quando si guarda un video su YouTube. https://peertube.uno
Go to file
Ealhad 0d7312d0c2 Make some small style improvements
-    let data = await InvidiousAPI.getVideo(id);
+    const data = await InvidiousAPI.getVideo(id);

I try to use `const` whenever I don't have to use `let`. While it's not a
guarantee as strong as what e.g. Rust can provide, I think it helps reducing
cognitive load — we know that the symbol will always reference the same piece of data.

-    if (prefs.redirectYoutube === 'Auto') {
+    if (prefs.redirectYoutube == RedirectType.Auto) {

Me nitpicking again. The string value of the RedirectYoutube enum is mainly
there for the radio buttons in the options page; in the code, it's better to use
the actual RedirectType.Auto symbol.

-    return {};
+    throw new Error('No results.');

Under the hood, an `async` function returns a promise, which resolves on return
and is rejected on throw.
2018-11-12 15:54:49 +01:00
extension Redirect before calling Youtube 2018-11-11 16:29:38 +01:00
src Make some small style improvements 2018-11-12 15:54:49 +01:00
.gitignore v0.2: use webpack, and DOM mutations to properly handle YT navigation 2018-08-10 15:45:07 +02:00
COPYING Initial commit 2018-08-10 02:15:35 +02:00
Makefile Add basic Makefile to ease packaging 2018-08-11 23:47:10 +02:00
README.org Add the possibility to display a link when on another PeerTube instance 2018-09-15 18:31:00 +02:00
logo.svg Add icons to manifest 2018-08-14 12:42:49 +02:00
package-lock.json Update version and dependencies 2018-11-09 14:40:58 +01:00
package.json Update version 2018-11-09 17:09:19 +01:00
tsconfig.json Add Preferences class to handle localStorage 2018-11-09 13:59:12 +01:00
webpack.config.js Enable webpack code splitting to drastically reduce package size 2018-11-04 09:06:02 +01:00

README.org

Peertubeify

PeerTubeify is a browser extension to help discovering which YouTube videos are also available on PeerTube, by displaying a link and a thumbnail below the video title, when watching a video on YouTube.

It also allows you to choose a preferred PeerTube instance; when you watch a video on another instance, a link to the same video in your preferred instance is displayed.

PeerTube is a federated video streaming platform.

PeerTubeify is not affiliated with PeerTube.

Get it on Firefox or Chrome/Chromium.

How does it work?

Most videos have the same title on YouTube and PeerTube. Hence — for now? — PeerTubeify uses the /search/videos endpoint of the PeerTube API to check if a video with the same title exists.

Contributing

Yes please!

License

PeerTubeify is released under the GNU GPL version 3. See COPYING.

Thanks

  • @Nutomic for hosting peertube.video, the default instance used by PeerTubeify