From ba212282216eead2ccb1e9423fe005dbed4fc185 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 26 Apr 2021 17:03:24 -0700 Subject: [PATCH] Add helpful bookmarklet to readme. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 8930939..445b166 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,18 @@ You are responsible for your own `youtube_credentials.py` file on your PYTHONPAT 6. Click "Create credentials" and choose "API key". In my experience they all start with "AIzaSy". 7. Return this value from `get_youtube_key` however you deem fit. +## Pairs well with... + +Here is a javascript bookmarklet that you can click while on youtube.com to be redirected to the same URL on your YCDL server. Mainly for `/channel` and `/watch` URLs. + +```Javascript +javascript: +document.location = document.location.href.replace('https://www.youtube.com', 'http://localhost:5000'); +false; +``` + +Replace 5000 with the port on which you choose to run YCDL. + ## Screenshots ![2020-04-04_15-27-15](https://user-images.githubusercontent.com/7299570/78462830-ca4f9900-768a-11ea-98c9-a4e622d3da62.png)