Skip to content

BarakBinyamin/Ad-Free-Youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ad Free Youtube

This project explores the use of youtube's embed architecture to circumvent ads

Quickstart

# 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

Avoid CORS policy blocks

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 nokey@localhost.run

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.

Or Ngrok

Forward this service to the web using ngrok, and avoid CORS policy blocks

  1. Make an ngrok account
  2. Create an ssh key with the command ssh-keygen
    1. Follow the prompts, remember the passphrase
    2. Copy the public key (cat /path/to/id_rsa.pub)
  3. Paste the ssh key to ngrok
  4. 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

About

This project explores the use of youtube's embed architecture to circumvent ads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published