Skip to content

Instantly share code, notes, and snippets.

@asportnoy
Last active January 15, 2026 03:30
Show Gist options
  • Select an option

  • Save asportnoy/628b820184297f5fe296c1a5b79c8000 to your computer and use it in GitHub Desktop.

Select an option

Save asportnoy/628b820184297f5fe296c1a5b79c8000 to your computer and use it in GitHub Desktop.
Open Youtube App Userscript | See https://github.com/qnblackcat/uYouPlus/issues/69
// ==UserScript==
// @name Open YouTube App
// @version 1.0.4
// @author asportnoy
// @match *://*.youtube.com/*
// @downloadURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-youtube-app.user.js
// @updateURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-youtube-app.user.js
// @homepage https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/
// @inject-into content
// ==/UserScript==
if (window.self !== window.top) return; // iframe
if (window.location.pathname === '/redirect') return; // Opening link in browser from app
window.location.href = `youtube://${window.location.pathname.slice(1)}${
window.location.search
}${window.location.hash}`;
@sevenpastzeero
Copy link

Can this script be updated to work like this Open in Apollo script? With the enhanced search integration? It directly open the Apollo app from e.g. google search results, without the need to go to the reddit post first, then getting the prompt to open in Apollo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment