Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit: Open in YouTube

Reddit's embedded player shows ads even when you pay for YouTube Premium. This Chrome extension puts a small "Open in YouTube" button on every Reddit post that links to a YouTube video, so one click takes you to youtube.com, where your normal signed-in session applies.

It works on new Reddit (www.reddit.com) and on old.reddit.com. Posts pulled in by infinite scroll get a button too, as do posts you reach through Reddit's in-page navigation. It recognises youtube.com/watch links, youtu.be short links, Shorts, Live, music.youtube.com and embed URLs, and it passes the original URL through untouched, so timestamps and other parameters survive.

Only link posts get a button. YouTube links in comments and self-text already send you to youtube.com, so there was never an ad problem there.

Install

There's no build step and no store listing, so load it unpacked:

  1. Clone or download this repository.
  2. Open chrome://extensions in Chrome. Edge and Brave work too, on the same code.
  3. Turn on Developer mode, top right.
  4. Click Load unpacked and pick this repository's folder.
  5. Open a subreddit with video posts, such as r/videos.

Permissions

It asks for nothing beyond running its content script on *://*.reddit.com/*. There's no background service worker and no network access. The button is an ordinary link, so nothing about your browsing leaves your machine.

Files

File Purpose
manifest.json MV3 manifest; registers the content script on reddit.com
content.js Finds YouTube link posts and injects the button
content.css Button styling, works in light and dark themes
icons/ Extension icons

About

Chrome extension that adds an Open in YouTube button to Reddit posts linking to YouTube videos

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages