This project explores the use of youtube's embed architecture to circumvent ads
# Get this project
git clone https://github.com/BarakBinyamin/addless-youtube.git
cd addless-youtube
npm install
# Run the demo @ localhost:8000
node index.js --port=8000
If you navigate to your ip-address:port instead of localhost:port you'll most likely have CORS issues with the youtube iframe
You can get an ssl encrytpted (https) tunnel to internet with the awesome tool localhost.run
ssh -R 80:localhost:8000 [email protected]
CORS, cross origin resource sharing, is a set of browser policies meant to keep your data safe. One of these policies prevents requests to ssl secured (https) websites from a non secure website (http). Special acception for localhost becuase that's known to be your computer.
Forward this service to the web using ngrok, and avoid CORS policy blocks
- Make an ngrok account
- Create an ssh key with the command
ssh-keygen
- Follow the prompts, remember the passphrase
- Copy the public key (cat /path/to/id_rsa.pub)
- Paste the ssh key to ngrok
- Forward this service to the web
ssh -i id_rsa -R 443:localhost:8000 tunnel.us.ngrok.com http
The output should be two routes, one with ssl enabled